We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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'
The text was updated successfully, but these errors were encountered:
Hey there I am also getting the same error
Sorry, something went wrong.
n_folds need to replace with n_splits
No branches or pull requests
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'
The text was updated successfully, but these errors were encountered: