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

Deap fitness objective #73

Closed
DYSIM opened this issue Jun 18, 2023 · 1 comment
Closed

Deap fitness objective #73

DYSIM opened this issue Jun 18, 2023 · 1 comment

Comments

@DYSIM
Copy link

DYSIM commented Jun 18, 2023

Is there a reason why in Deap the fitness objective is to minimize

creator.create("FitnessMin", base.Fitness, weights=(-1.0,))

and the reward is set as -p.r , when is already possible to set FitnessMax from the start like

creator.create("FitnessMax", base.Fitness, weights=(1.0,))

which lets the reward be used as it is, without negating.

Thanks!

@brendenpetersen
Copy link
Collaborator

Nope! That would probably be cleaner. I’d do a parity test and if it passes them replace it as you suggest. Don’t think I knew about FitnessMax at the time.

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

2 participants