Python Forum
Evaluate dataset with logistic regression
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Evaluate dataset with logistic regression
#6
I'll take a look at the dataset in a moment but in general, normally you'd have 2 separate datasets with their corresponding binary results (also referred to as "labels")
1. Training one (used to fit the logistic regression model)
2. Testing one (used to verify how accurate are the predictions)

If you have 1 big dataset, you could split it (scikit has a method especially for that).

In the code you posted it seems that the same data is used to train the model and then it's being used for making predictions. This will probably result in "fake" great performance of the classifier.
Reply


Messages In This Thread
RE: Evaluate dataset with logistic regression - by michalmonday - Jun-06-2019, 02:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make a double loop to evaluate this triple integral Safinazsalem 0 224 May-06-2024, 10:12 AM
Last Post: Safinazsalem
  Evaluate Calculations yrstruly 0 1,121 Jun-17-2023, 06:51 PM
Last Post: yrstruly
  Hosmer-Lemeshow test in logistic regression Ninax 1 3,111 Feb-17-2021, 10:50 PM
Last Post: Larz60+
  Can I evaluate a Chebyshev polynomial using a function player1681 1 2,067 Nov-22-2019, 06:33 AM
Last Post: scidam
  Logistic regression with Tensorflow kiton 1 2,619 Nov-28-2018, 07:34 PM
Last Post: kiton

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020