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

Error in 2nd last

Open queensaikia opened this issue 5 years ago • 3 comments
trafficstars

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'

queensaikia avatar Mar 06 '20 09:03 queensaikia

Hey there I am also getting the same error

Connectsumit avatar Apr 15 '20 10:04 Connectsumit

Okay, are you able to resolve it?

On Wed, Apr 15, 2020 at 3:10 AM Connectsumit [email protected] 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

queensaikia avatar Apr 15 '20 18:04 queensaikia

n_folds need to replace with n_splits

dineshgurjar avatar Oct 31 '20 11:10 dineshgurjar