Skip to content

Instantly share code, notes, and snippets.

@srang992
Created May 26, 2022 12:04
Show Gist options
  • Save srang992/2198024b98eee113e6299d0a95a71050 to your computer and use it in GitHub Desktop.
Save srang992/2198024b98eee113e6299d0a95a71050 to your computer and use it in GitHub Desktop.
# the data directly scaled without resampling
X_train_scaled = ct.fit_transform(X_train)
X_test_scaled = ct.transform(X_test)
# fitting and predicting the model
linear_reg.fit(X_train_scaled, y_train)
y_pred2 = linear_reg.predict(X_test_scaled)
print(classification_report(y_test, y_pred2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment