microsoft / nni

An open source AutoML toolkit for automate machine learning lifecycle, including feature engineering, neural architecture search, model compression and hyper-parameter tuning.
https://nni.readthedocs.io
MIT License
14.05k stars 1.81k forks source link

'_SingleProcessDataLoaderIter' object has no attribute '_num_workers' #3402

Closed tiaotiaosong closed 2 years ago

tiaotiaosong commented 3 years ago

Environment:

Log message:

What issue meet, what's expected?:

How to reproduce it?:

Additional information:

tiaotiaosong commented 3 years ago

`from sklearn.model_selection import train_test_split

from nni.algorithms.feature_engineering.gradient_selector import FeatureGradientSelector

x, y = [[1, 0.4], [1, 1], [2, 2], [2, 3], [1, 2], [1, 3]], [0, 1, 0, 1, 1, 1]

X_train, X_test, y_train, y_test = train_test_split( np.array(x), np.array(y), test_size=0.33, random_state=42 ) fgs = FeatureGradientSelector(n_features=1) fgs.fit(X_train, y_train) print(fgs.get_selected_features())`

scarlett2018 commented 2 years ago

@tiaotiaosong - are you still facing the issue with latest nni release? thanks.