Last answered:

15 Jun 2020

Posted on:

12 Jun 2020

0

Logistic Regression Test data

Hello Team, I guess that i am bit loss with this lesson, I understood the whole process about Logistic Regression, But, as soon as i have the model, how can i use it? Because in the confussion matrix formula you made, i have to insert X (independent variables), Y (Target), Model, so how can i use the model created? Thanks!
1 answers ( 0 marked as helpful)
Instructor
Posted on:

15 Jun 2020

0
Hi Miguel, As seen in the previous lecture (about accuracy), you can use the model with the the function 'predict()'. So if you have some new data in the same format (say the variable is 'new_data'), then you can write:
results.predict(new_data)
Best, Iliya

Submit an answer