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)
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
Hi I have got the same error while fitting the Logistic regression