Can anyone help me with the exercises that I'm stuck on

I’m currently stuck on these exercises and don’t know what to do

Blockquote EXERCISE : Use the SGDRegressor class from scikit-learn` to train a model using the stochastic gradient descent technique. Make predictions and compute the loss. Do you see any difference in the result?

This is my code, is this correct??

from sklearn.linear_model import SGDRegressor
model2 = SGDRegressor()
help( # Details how to use the function, targets)
predictions = model2.predict(inputs)
rmse(targets, predictions)

Hey @alfredo3xa, Welcome to the community.
This seems correct to me, What is the error you are facing?

1 Like

Thank you so much! There was no error I just wasn’t sure if it was done correctly and needed some validation

1 Like