Closed shainaraza closed 2 years ago
@shainaraza once you have the predictions of the model you can save them in what ever format you need: in a text file, csv, pickle etc.
Yes, you can use any metrics you want and make sense for your experiments.
I personally only compute de metric and save it instead of all the predictions.
thanks @gmihaila another quick question: dont know my model accuracy increases when i make it binary classification, with multiclass, it drops badly
all the changes are adjusted with multiclass for example. change to label numbers, does it have to do something with scoring function?
@shainaraza I'm not sure what are you doing classification on but if you drop one of the labels it's ok if the accuracy jumps. That means you dropped a label that was hard for the model to classify and also you get higher accuracy when you deal with fewer labels - less mistakes counted by the model.
@shainaraza I'm not sure what are you doing classification on but if you drop one of the labels it's ok if the accuracy jumps. That means you dropped a label that was hard for the model to classify and also you get higher accuracy when you deal with fewer labels - less mistakes counted by the model.
it is solved now, the reason was that the labels were not balanced, I mean imbalanced dataset, I did undersampling.
thanks once again
@gmihaila thanks for the great notebook, in the same theme of saving predictions, does trainer.evaluate() return predictions for the entire validation set? Is there a way to save them?
Hi @gmihaila any suggestions on saving the predictions of the model. Also you are using sklearn.metrics, so I think we can use more metrics from the sklearn.metrics
thanks