Getting loss value for testing set #799
Answered
by
MilesCranmer
VittoriaOssanna
asked this question in
Q&A
-
Hello everyone, I am having troubles getting the loss from a test set. My dataset is divided into train and test through Can somebody help me? |
Beta Was this translation helpful? Give feedback.
Answered by
MilesCranmer
Jan 7, 2025
Replies: 1 comment 2 replies
-
Maybe this? from sklearn.metrics import mean_squared_error as mse
y_pred_test = model.predict(x_test)
mse(y_pred_test, y_test) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm, maybe try