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

Minor bug in auto-simplify-plush function #297

Closed
theaksaini opened this issue Jun 9, 2020 · 0 comments
Closed

Minor bug in auto-simplify-plush function #297

theaksaini opened this issue Jun 9, 2020 · 0 comments

Comments

@theaksaini
Copy link
Contributor

The first input to translate-plush-genome-to-push-program should be a map containing only the genome to be translated {:genome new-genome}. A snippet from the relevant function.

(let [new-genome (apply-simplification-step-to-genome genome simplification-step-probabilities)
              new-program (translate-plush-genome-to-push-program (assoc ind :genome new-genome)
                                                                  {:max-points (* 10 (count genome))})
              new-errors (:errors (error-function {:program new-program}))]
          (if (and (= new-errors errors)
                   (<= (count-points new-program) (count-points program)))
            (recur (inc step) new-genome new-program new-errors)
            (recur (inc step) genome program errors)))))))

new-program (translate-plush-genome-to-push-program (assoc ind :genome new-genome)

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