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

fix to allow mutations to actually occur to an individual #108

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

jgh9094
Copy link
Contributor

@jgh9094 jgh9094 commented Nov 2, 2023

[please review the Contribution Guidelines prior to submitting your pull request. go ahead and delete this line if you've already reviewed said guidelines.]

What does this PR do?

When experimenting with TPOT2 and only allowing mutations to occur, no variation would be applied to the parents. This is because the var_op was 'mutate', not 'mutation'. Additionally, we needed to send an individual to the copy_and_mutate function, not a numpy array. This fix does all that.

Where should the reviewer start?

tpot2/population.py -> create_offspring2()

How should this PR be tested?

Any background context you want to provide?

What are the relevant issues?

[you can link directly to issues by entering # then the number of the issue]

Screenshots (if appropriate)

Questions:

  • Do the docs need to be updated?
  • Does this PR add new (Python) dependencies?

@perib perib merged commit 3c29e88 into EpistasisLab:dev Nov 2, 2023
1 check passed
@jgh9094 jgh9094 deleted the mutation-operator-fix branch November 2, 2023 21:19
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.

2 participants