Python Forum
Evaluate dataset with logistic regression
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Evaluate dataset with logistic regression
#4
Is it going to be possible to observe the seemingly way off results using this sample? Or would bigger sample be required?

Btw isn't it making predictions on the same dataset that was used for training?
x = data_df[['x_value','y_value']]
y = data_df[['binary_result']]
 
log_reg = linear_model.LogisticRegression(solver='lbfgs').fit(x,np.ravel(y))
 
predictions = log_reg.predict(x)
That's what it looks like...

So that would be the reason if by any chance the results seem too accurate.
Reply


Messages In This Thread
RE: Evaluate dataset with logistic regression - by michalmonday - Jun-06-2019, 02:35 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