Last answered:

07 Apr 2020

Posted on:

06 Apr 2020

1

Resolved: PD model Estimation - Jupyter Notebook error

the following error occurs when i try to estimate the co-efficients for inputs_train and loan_data_targets_train using LogisticRegression:
Input contains NaN, infinity or a value too large for dtype('float64')

1 answers ( 0 marked as helpful)
Posted on:

07 Apr 2020

1
Hi Dan, I 've faced the same issue when I try regression part. The root cause of problem is inputs_train dataset have NaN  valued column. you can check the null values in input_dataset columns inputs_train.isnull().sum() I've followed the classroom codes and the main issue is caused by the creation of inputs_train_with_ref_cat variable.  You should update the last column 'mths_since_last_record:>=86' to 'mths_since_last_record:>86' to run regression properly.    

Submit an answer