🛠️ Scheduled Maintenance | We’ll be undergoing scheduled maintenance and upgrades between 00:00 PST Jan 26th until 00:00 PST Jan 28th. There may be brief interruption of services in that period. We apologize for the inconvenience.

×
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

Error with Logistic Regression Model with P-Values

Error with Logistic Regression Model with P-Values

0
Votes
2
Answer

Hello
I got error when run “reg.fit(inputs_train, loan_data_targets_train)” with P-Values as below:
 

C:\Users\11\Anaconda3\lib\site-packages\sklearn\utils\validation.py:760: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel().
  y = column_or_1d(y, warn=True)
C:\Users\11\Anaconda3\lib\site-packages\sklearn\linear_model\_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1):
STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
2 Answers

365 Team
0
Votes

Hi Saam,
Could you please let us know which course and problem you are referring to so we can assist you better?
Best,
The 365 Team

0
Votes

Hi 365 team,
Thanks for your response the course is credit risk modeling, identified the error where exactly and now it\’s working with me fine.
Regards.