Exercise

# Showing the coefficients and intercept

Once the logistic regression model is ready, it can be interesting to have a look at the coefficients to check whether the model makes sense.

Given a fitted logistic regression model logreg, you can retrieve the coefficients using the attribute `coef_`

. The order in which the coefficients appear, is the same as the order in which the variables were fed to the model. The intercept can be retrieved using the attribute `intercept_`

.

The logistic regression model that you built in the previous exercises has been added and fitted for you in `logreg`

.

Instructions

**100 XP**

- Assign the coefficients of the logistic regression model to the list
`coef`

. - Assign the intercept of the logistic regression model to the variable
`intercept`

.