The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Logistic Regression Test data

Logistic Regression Test data

Super Learner
0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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