Skip to content

Conversation

@venkatesh-kulkarni
Copy link

Change the calculation of mean and std dev of results from

results_mean = list(results.mean().values)
results_std = list(results.std().values)

TO

# Exclude non-numeric columns before calculating mean and std
numeric_results = results.select_dtypes(include=['number'])

results_mean = list(numeric_results.mean().values)
results_std = list(numeric_results.std().values)

in the function kfold_cv_with_classifier

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

Successfully merging this pull request may close these issues.

1 participant