Skip to content

Instantly share code, notes, and snippets.

@srang992
Created May 26, 2022 11:33
Show Gist options
  • Select an option

  • Save srang992/36f69ee43ae52cabe12fc39ab5e6f31e to your computer and use it in GitHub Desktop.

Select an option

Save srang992/36f69ee43ae52cabe12fc39ab5e6f31e to your computer and use it in GitHub Desktop.
# making an object for LogisticRegression
linear_reg = LogisticRegression()
# fitting the data
linear_reg.fit(X_scaled, y_resampled)
# predicting on x_test
y_pred = linear_reg.predict(X_test_scaled)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment