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 base mutations #27

Closed
RK900 opened this issue Jul 14, 2017 · 0 comments
Closed

Fix base mutations #27

RK900 opened this issue Jul 14, 2017 · 0 comments

Comments

@RK900
Copy link
Member

RK900 commented Jul 14, 2017

Problems

  1. Base mutations are only to 4 (C)
  2. Previous mutated sequence carries over to next iteration

Example:

Should be:

# this is for only 1 randomly generated sequence
[4 2 4 4 2 2 3 1 2]
[1 2 4 4 2 2 3 1 2]  [2 2 4 4 2 2 3 1 2]  [3 2 4 4 2 2 3 1 2]  [4 2 4 4 2 2 3 1 2]
# calculate reward
[4 2 4 4 2 2 3 1 2]
[4 1 4 4 2 2 3 1 2]  [4 2 4 4 2 2 3 1 2]  [4 3 4 4 2 2 3 1 2]  [4 4 4 4 2 2 3 1 2]
# calculate reward

Currently is:

[4 2 4 4 2 2 3 1 2]
[4 2 4 4 2 2 3 1 2]  [4 2 4 4 2 2 3 1 2]  [4 2 4 4 2 2 3 1 2]  [4 2 4 4 2 2 3 1 2]
# calculate reward
[4 2 4 4 2 2 3 1 2]
[4 4 4 4 2 2 3 1 2]  [4 4 4 4 2 2 3 1 2]  [4 4 4 4 2 2 3 1 2]  [4 4 4 4 2 2 3 1 2]
# calculate reward

Eventually, the entire list becomes 4s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant