imbalanced-data

XGBoost for multiclassification and imbalanced data

XGBoost for multiclassification and imbalanced data Question: I am dealing with a classification problem with 3 classes [0,1,2], and imbalanced class distribution as shown below. I want to apply XGBClassifier (in Python) to this classification problem, but the model does not respond to class_weight adjustments and skews towards the majority class 0, and ignores the …

Total answers: 2

cannot import name 'SMOTEN' from 'imblearn.over_sampling'

cannot import name 'SMOTEN' from 'imblearn.over_sampling' Question: SMOTE and SMOTENC is working. But unable to use SMOTEN. I tried solution in this. But still only for SMOTEN it returns the error, ImportError: cannot import name ‘SMOTEN’ from ‘imblearn.over_sampling’. I am using Jupyter Notebook and below is the snippet of error returned. ImportError Traceback (most recent …

Total answers: 1

imbalanced-learn: how is the threshold calculated in the instance hardness threshold method?

imbalanced-learn: how is the threshold calculated in the instance hardness threshold method? Question: I am looking at the source code of the InstanceHardnessThreshold transformer from imbalanced-learn, here: https://github.com/scikit-learn-contrib/imbalanced-learn/blob/12b2e0d/imblearn/under_sampling/_prototype_selection/_instance_hardness_threshold.py#L167 And I am wondering how exactly the threshold is calculated and what the rationale is? Asked By: Sole Galli || Source Answers: After discussing with the maintainers …

Total answers: 1