Relative Content

Tag Archive for pythonscikit-learn

how to adjust cutoff in a logistic regression model?

example contrived for this question. say, I am training a binary classifier utilizing sklearn package. i have a balanced dataset , half positive and half negative samples. i split the train/test data ( sample code below). I want to train this, such that i have good enough precision and recall values. I definitely want to have more false positive than false negatitve. I understand i can adjust cutoff value , and that cutoff value can impact precision and accuracy of my model. is it a good strategy to adjust cutoff during training , until you get desired precision recall value?

What is the default accuracy scoring in cross_val_score() in sklearn?

I have a regression model made using random-Forest. I made pipelines using scikit to process data and now have used RandomForestRegressor to predict.
I want to get the accuracy of model. because of the problem of over-fitting I decided to use the cross_val_score function to get rid of that.