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(model2.fit) # Details how to use the function

model2.fit(inputs, targets)
predictions = model2.predict(inputs)
predictions
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