2
votes
How sklearn logistic regression computes accuracy, recall etc if we don't provide threshold?
The default threshold is 0.5, so it is computed on that basis. It is kind of a problem as it isn't well documented (not even on the logistic regression predict page) and a very common pitfall.
The two ...
- 2,377
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
logistic-regression × 682machine-learning × 236
classification × 121
python × 114
scikit-learn × 80
regression × 49
r × 48
predictive-modeling × 41
linear-regression × 35
neural-network × 33
deep-learning × 29
svm × 29
random-forest × 27
gradient-descent × 27
feature-selection × 23
statistics × 22
machine-learning-model × 20
data-science-model × 18
data-mining × 17
decision-trees × 16
multiclass-classification × 15
nlp × 14
class-imbalance × 14
optimization × 14
accuracy × 14