Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in 2nd last #7

Open
queensaikia opened this issue Mar 6, 2020 · 3 comments
Open

Error in 2nd last #7

queensaikia opened this issue Mar 6, 2020 · 3 comments

Comments

@queensaikia
Copy link

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
Copy link

Hey there I am also getting the same error

@queensaikia
Copy link
Author

queensaikia commented Apr 15, 2020 via email

@dineshgurjar
Copy link

n_folds need to replace with n_splits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants