I have dataset X_train , y_train , X_test, y_test. Now I want to train logistic regression with K=10 Cross validation . Same time I would like to have F1 score and accuracy for each fold. But I would also like to set threshold of probability lets's to .65.
from sklearn.linear_model import LogisticRegression
clf = LogisticRegression()
How can be done this in single line with sklearn.model_selection.cross_validate or sklearn.model_selection.cross_val_score
Thanks in advance