ParthS007 / Loan-Approval-Prediction

Loan Application Data Analysis
https://youtu.be/tz_yVYjfyW4
Apache License 2.0
89 stars 76 forks source link

Error #6

Open Avinash-kumar-max opened 4 years ago

Avinash-kumar-max commented 4 years ago

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'