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 #6

Open
Avinash-kumar-max opened this issue Dec 18, 2019 · 0 comments
Open

Error #6

Avinash-kumar-max opened this issue Dec 18, 2019 · 0 comments

Comments

@Avinash-kumar-max
Copy link

Avinash-kumar-max commented Dec 18, 2019

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'

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

1 participant