You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
arjunpuri7
changed the title
i want to use in my dataset to apply smote variants but is not working
I want to use in my dataset to apply smote variants but is not working
Jul 7, 2019
I want to use evaluate_oversampler method on my datasets and perform following steps:
import smote_variants as sv
import pandas as pd
import numpy as np
data=pd.read_csv(".........original/glass0.csv")
x=data.drop('10',axis=1)
X=x.as_matrix()
y=data.iloc[:,-1]
Y=y.as_matrix()
datasets={'data':X,'target':Y,'name':'glass0'}
print(datasets)
oversamplers= [sv.SMOTE_ENN, sv.NEATER, sv.Lee]
classifiers= [KNeighborsClassifier(n_neighbors= 3),
KNeighborsClassifier(n_neighbors= 5),
DecisionTreeClassifier()]
cache_path= 'C:/Users/hp/Desktop/python codes/structure'
Hi @arjunpuri7, the evaluate_oversamplers function takes a list of datasets to evaluate on, therefore, all you need to do is put the dataset specification in a list as
No description provided.
The text was updated successfully, but these errors were encountered: