Skip to content
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

question about kfold #734

Open
cghsncg opened this issue Dec 9, 2023 · 0 comments
Open

question about kfold #734

cghsncg opened this issue Dec 9, 2023 · 0 comments

Comments

@cghsncg
Copy link

cghsncg commented Dec 9, 2023

I'm using kfold for accuracy verification, but I have some questions
My code is as follows
kf = KFold(n_splits=5, shuffle=True, random_state=42)
for train_id, test_id in kf.split(points):
toolsbox.register("evaluate", model, points=train_points)
Each time I used toolsbox.register("evaluate", model, points=train_points) code to re-register his evaluation function, and I want to know if this works ?

Another question I have is whether individuals in the different folds mentioned above can cross-mutate, i.e., can individuals from two populations that differ only in the way the fitness function is computed cross-mutate in deap, and does the way the fitness function is computed have any effect on the cross-mutations of separate individuals?

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

No branches or pull requests

1 participant