Hi, Visaal.
Kindly check the line
y_scores=cross_val_predict(sgd_clf,X_train,y_train_5,cv=3)
does y_train_5 exits?
All the best!
yes sir i have defined it
Hi, Visaal.
In the code you shared, I cannot find any error, kindly see the previous codes if you have run the cell or defined etc.
Kindly share the complete code for more insights.
All the best!
sir i got this but i have another doubt
from sklearn.metrics import precision_recall_curve
precisions, recalls, thresholds = precision_recall_curve(y_train_5, y_scores)
In the above code len of thresholds is 1 less than recalls and precisions why…??
Hi, Visaal.
Kindly refer to this discussions
All the best!