hardStudy question · answer published in Machine Learning interview questions, so no pointsmachine-learningclass-imbalancescikit-learn
Weight given by class_weight balanced
A training set has 1,000 rows: 900 negatives and 100 positives. scikit-learn's class_weight="balanced" sets weight = n_samples / (n_classes × n_samples_in_class). What weight does each positive row get?
Discussion 0
Join free to post in the discussion.
Related questions
- Predicting a flat price in rupeesMachine Learning Engineer
- One gradient descent stepMachine Learning Engineer
- Sigmoid at zeroMachine Learning Engineer
- Logistic regression with five classesMachine Learning Engineer
- The naive part of Naive BayesMachine Learning Engineer
- Entropy of a 50/50 nodeMachine Learning Engineer
- Tree with no depth limitMachine Learning Engineer
- Prediction after one boosting roundMachine Learning Engineer