Skip to content

Fix Error in calculating mean std dev of results #22

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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