AxeldeRomblay / MLBox

MLBox is a powerful Automated Machine Learning python library.
https://mlbox.readthedocs.io/en/latest/
Other
1.49k stars 273 forks source link

NameError for DriftEstimator #36

Closed wrangel closed 6 years ago

wrangel commented 6 years ago

When computing drifts (Jupyter Notebook, MLBox 0.4.4) using the notebook in the classification example

dft = Drift_thresholder() df = dft.fit_transform(df)

I get a name error:

computing drifts... [0:apply]: ---------------------------------------------------------------------------NameError Traceback (most recent call last) in () c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\ipyparallel\client\remotefunction.py in (f, sequences) 248 if _mapping: 249 if sys.version_info[0] >= 3: --> 250 f = lambda f, sequences: list(map(f, *sequences)) 251 else: 252 f = map c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\mlbox\preprocessing\drift\drift_threshold.py in sync_fit(df_train, df_test, estimator, n_folds, stratify, random_state) 46 47 # We will compute the indices of the CV in each thread ---> 48 de = DriftEstimator(estimator, n_folds, stratify, random_state) 49 de.fit(df_train, df_test) 50 NameError: name 'DriftEstimator' is not defined

[1:apply]: ---------------------------------------------------------------------------NameError Traceback (most recent call last) in () c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\ipyparallel\client\remotefunction.py in (f, sequences) 248 if _mapping: 249 if sys.version_info[0] >= 3: --> 250 f = lambda f, sequences: list(map(f, *sequences)) 251 else: 252 f = map c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\mlbox\preprocessing\drift\drift_threshold.py in sync_fit(df_train, df_test, estimator, n_folds, stratify, random_state) 46 47 # We will compute the indices of the CV in each thread ---> 48 de = DriftEstimator(estimator, n_folds, stratify, random_state) 49 de.fit(df_train, df_test) 50 NameError: name 'DriftEstimator' is not defined

[2:apply]: ---------------------------------------------------------------------------NameError Traceback (most recent call last) in () c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\ipyparallel\client\remotefunction.py in (f, sequences) 248 if _mapping: 249 if sys.version_info[0] >= 3: --> 250 f = lambda f, sequences: list(map(f, *sequences)) 251 else: 252 f = map c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\mlbox\preprocessing\drift\drift_threshold.py in sync_fit(df_train, df_test, estimator, n_folds, stratify, random_state) 46 47 # We will compute the indices of the CV in each thread ---> 48 de = DriftEstimator(estimator, n_folds, stratify, random_state) 49 de.fit(df_train, df_test) 50 NameError: name 'DriftEstimator' is not defined

[3:apply]: ---------------------------------------------------------------------------NameError Traceback (most recent call last) in () c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\ipyparallel\client\remotefunction.py in (f, sequences) 248 if _mapping: 249 if sys.version_info[0] >= 3: --> 250 f = lambda f, sequences: list(map(f, *sequences)) 251 else: 252 f = map c:\users\wettsteinm\appdata\local\continuum\anaconda3\lib\site-packages\mlbox\preprocessing\drift\drift_threshold.py in sync_fit(df_train, df_test, estimator, n_folds, stratify, random_state) 46 47 # We will compute the indices of the CV in each thread ---> 48 de = DriftEstimator(estimator, n_folds, stratify, random_state) 49 de.fit(df_train, df_test) 50 NameError: name 'DriftEstimator' is not defined

AxeldeRomblay commented 6 years ago

Thanks for reporting this issue ! I will fix that asap and keep you in touch.

AxeldeRomblay commented 6 years ago

It has just been fixed, so you can have a try ! It should work now..

wrangel commented 6 years ago

Working indeed. Thanks.