Created
May 26, 2022 12:04
-
-
Save srang992/2198024b98eee113e6299d0a95a71050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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