Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
m5000_5
mm_scaler = preprocessing.MinMaxScaler()
X_train_minmax = mm_scaler.fit_transform(X_train[['thickness', 'delta']])
neigh = KNeighborsRegressor(n_neighbors=20)
X_train_clean = X_train[y_train['I'] < limit].reset_index(drop=True)
X_train_clean_minmax = mm_scaler.transform(X_train_clean[['thickness', 'delta']])
neigh.fit(X_train_clean_minmax, X_train_clean[['speed']])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.