Skip to content

Error #6

@Avinash-kumar-max

Description

@Avinash-kumar-max

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions