logistic regression model
# Getting the coefficients coefficients = log_reg.coef_ odds_ratio = np.exp(coefficients) # Display the coefficients for col, coef in zip(X.columns, coefficients[0]): print(f'{col}: {coef}')
Not a member yet? Register now
Are you a member? Login now