Closed tiaotiaosong closed 2 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())`
@tiaotiaosong - are you still facing the issue with latest nni release? thanks.
Environment:
Log message:
What issue meet, what's expected?:
How to reproduce it?:
Additional information: