ParthS007 / Loan-Approval-Prediction

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

Error in 2nd last #7

Open queensaikia opened 4 years ago

queensaikia commented 4 years ago

classification_model(model, df,predictors_Logistic,outcome_var)

test_modified.to_csv("Logistic_Prediction.csv",columns=['Loan_ID','Loan_Status'])

TypeError Traceback (most recent call last)

in 16 outcome_var = 'Loan_Status' 17 ---> 18 classification_model(model, df,predictors_Logistic,outcome_var) 19 20 test_modified.to_csv("Logistic_Prediction.csv",columns=['Loan_ID','Loan_Status']) in classification_model(model, data, predictors, outcome) 17 18 #Perform k-fold cross-validation with 5 folds ---> 19 kf = KFold(data.shape[0], n_folds=5) 20 error = [] 21 for train, test in kf: TypeError: __init__() got an unexpected keyword argument 'n_folds'
Connectsumit commented 4 years ago

Hey there I am also getting the same error

queensaikia commented 4 years ago

Okay, are you able to resolve it?

On Wed, Apr 15, 2020 at 3:10 AM Connectsumit notifications@github.com wrote:

Hey there I am also getting the same error

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ParthS007/Loan-Approval-Prediction/issues/7#issuecomment-613948179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLELLHSWSKP24DQIKKKEHDRMWB23ANCNFSM4LC4PHUA .

-- Regards Queen Saikia

dineshgurjar commented 3 years ago

n_folds need to replace with n_splits