-
-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
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'
Metadata
Metadata
Assignees
Labels
No labels