Skip to content
RED SAG Skills
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?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions