Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GabrielSGoncalves/9eaa8da5a686759707f208a5faa3debf to your computer and use it in GitHub Desktop.
Save GabrielSGoncalves/9eaa8da5a686759707f208a5faa3debf to your computer and use it in GitHub Desktop.
# Define scaling method and values
scaling_method = "min_max"
scaling_method_data = {"min": 0, "max": 1000}
# Instatiate and fit Scorecard
scorecard = Scorecard(
target='TARGET',
binning_process=binning_process,
estimator=logreg,
scaling_method=scaling_method,
scaling_method_params=scaling_method_data,
intercept_based=False,
reverse_scorecard=True,
)
scorecard.fit(df_application_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment