Last answered:

16 Feb 2021

Posted on:

21 Apr 2020

0

ValueError while executing Fit method

Team, I am seeing the below error while executing the Fit method for Logistic Regression in the Credit Risk Modelling course. I made sure I have ran and generated all the train and test files the way it was provided in the notebook. Can you please help me fix it. Code:reg.fit(inputs_train,loan_data_targets_train) Error:- ValueError: Input contains NaN, infinity or a value too large for dtype('float64').
2 answers ( 0 marked as helpful)
Instructor
Posted on:

16 Jun 2020

0
Hi Debashish, This error usually comes up when you have not preprocessed all data properly. Please check if there are NaN values in your cells and try to troubleshoot why you have reached them. Best, The 365 Team
Posted on:

16 Feb 2021

0

Hi I have got the same error while fitting the Logistic regression

Submit an answer