Jun-06-2019, 02:35 PM
(This post was last modified: Jun-06-2019, 02:41 PM by michalmonday.)
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?
So that would be the reason if by any chance the results seem too accurate.
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.