Loan-Approval-Prediction icon indicating copy to clipboard operation
Loan-Approval-Prediction copied to clipboard

Error

Open Avinash-kumar-max opened this issue 5 years ago • 0 comments

Even though u fixed it coming again Cross-validation is not coming

TypeError Traceback (most recent call last) in 16 outcome_var = 'Loan_Status' 17 ---> 18 classification_model(model, data,predictors_Logistic,outcome_var) 19 20 test_modified.to_csv("Logistic_Prediction.csv",columns=['Loan_ID','Loan_Status'])

in classification_model(model, df, predictors, outcome) 18 19 #Perform k-fold cross-validation with 5 folds ---> 20 kf = KFold(df.shape[0], n_folds=5) 21 error = [] 22 for train, test in kf:

TypeError: init() got an unexpected keyword argument 'n_folds'

Avinash-kumar-max avatar Dec 18 '19 06:12 Avinash-kumar-max