convert text data to numeric before applying SMOTE , like below. from sklearn.feature_extraction.text import CountVectorizer vectorizer ... ... <看更多>
Search
Search
convert text data to numeric before applying SMOTE , like below. from sklearn.feature_extraction.text import CountVectorizer vectorizer ... ... <看更多>
I have imbalanced classes with 10000 1s and 10m 0s. I want to undersample before I convert category columns to dummies to save memory. ... <看更多>
Though not the best solution, I found some success by converting it into pandas dataframe and working along. code snippet. # convert X into dataframe X_pd ... ... <看更多>