You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.3 KiB

  1. This question is validated if the outputted plot looks like this:

alt text

  1. This question is validated if the coefficient and the intercept of the Logistic Regression are:
Intercept:  [-0.98385574]
Coefficient:  [[1.18866075]]
  1. This question is validated if the plot looks like this:

alt text

  1. This question is validated if predict_probability outputs the same probabilities as predict_proba. Note that the values have to match one of the class probabilities, not both. To do so, compare your output with: clf.predict_proba(X)[:,1]. The shape of the arrays is not important.

  2. This question is validated if predict_class outputs the same classes as cfl.predict(X). The shape of the arrays is not important.

  3. This question is validated if the plot looks like this:

alt text

As mentioned, it is not required to shift the class prediction to make the plot easier to understand.

  1. This question is validated if the plot looks like this:

alt text