All Questions
5 questions
2
votes
0
answers
118
views
Using SMOTE Train Model and Optimal Cutoff on Unbalanced Test Data
My original dataset has a binary dependent variable with 3% of the values being one. First, I split the original dataset into training and testing sets using an 80-20 split. Since it includes both ...
2
votes
1
answer
3k
views
Using SMOTENC in a pipeline
I am trying to figure out the appropriate way to build a pipeline to train a model which includes using the SMOTENC algorithm:
Given that the N-Nearest Neighbors algorithm and Euclidian distance are ...
3
votes
0
answers
824
views
Balancing the dataset using imblearn undersampling, oversampling and combine?
I have the imbalanced dataset:
data['Class'].value_counts()
Out[22]:
0 137757
1 4905
Name: Class, dtype: int64
...
6
votes
1
answer
8k
views
SMOTE vs SMOTE-NC for binary classifier with categorical and numeric data
I am using Xgboost for classification. My y is 0 or 1 (true or false). I have categorical and numeric features, so theoretically, I need to use SMOTE-NC instead of ...
2
votes
1
answer
426
views
SMOTE and oversampling with constraints
I'm trying to apply SMOTE to a dataset that has time-constraints. I have information about users visiting a website. For some features, there are time constraints, e.g having the first visit and the ...