lspector / Clojush

The Push programming language and the PushGP genetic programming system implemented in Clojure.
http://hampshire.edu/lspector/push.html
Eclipse Public License 1.0
331 stars 94 forks source link

Broken example: calc #101

Open Vaguery opened 9 years ago

Vaguery commented 9 years ago

lein run clojush.problems.software.calc produces

Number of tests: 10
Behaviors: [{:old-tests [[[:zero] 0.0 false] [[:one] 1.0 false] [[:two] 2.0 false] [[:three] 3.0 false] [[:four] 4.0 false] [[:five] 5.0 false] [[:six] 6.0 false] [[:seven] 7.0 false] [[:eight] 8.0 false] [[:nine] 9.0 false]], :new-tests [], :augment-fn #<calc$fn__3822 clojush.problems.software.calc$fn__3822@47ca32f7>} {:old-tests [], :new-tests [], :augment-fn #<calc$fn__3824 clojush.problems.software.calc$fn__3824@78d15e01>} {:old-tests [], :new-tests [], :augment-fn #<calc$fn__3831 clojush.problems.software.calc$fn__3831@7af32927>}]
Exception in thread "main" java.lang.AssertionError: Assert failed: Argument key :ultra-mutates-to-parentheses-frequently is not a recognized argument to pushgp.
(contains? (clojure.core/deref push-argmap) argkey)
    at clojush.pushgp.pushgp$load_push_argmap.invoke(pushgp.clj:134)
    at clojush.pushgp.pushgp$pushgp.invoke(pushgp.clj:257)
    at clojush.core$_main.doInvoke(core.clj:38)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.lang.Var.invoke(Var.java:415)
    at user$eval5.invoke(form-init886434695797924965.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:6619)
    at clojure.lang.Compiler.eval(Compiler.java:6609)
    at clojure.lang.Compiler.load(Compiler.java:7064)
    at clojure.lang.Compiler.loadFile(Compiler.java:7020)
    at clojure.main$load_script.invoke(main.clj:294)
    at clojure.main$init_opt.invoke(main.clj:299)
    at clojure.main$initialize.invoke(main.clj:327)
    at clojure.main$null_opt.invoke(main.clj:362)
    at clojure.main$main.doInvoke(main.clj:440)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:419)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.main.main(main.java:37)
lspector commented 9 years ago

Thanks. This is a known issue that's noted at the top of the file (with a spelling error, alas). It should be fixed or moved back to /experimental, where it used to live.

-Lee

On Feb 20, 2015, at 8:03 AM, Bill Tozier notifications@github.com wrote:

lein run clojush.problems.software.calc produces

Number of tests: 10 Behaviors: [{:old-tests [[[:zero] 0.0 false] [[:one] 1.0 false] [[:two] 2.0 false] [[:three] 3.0 false] [[:four] 4.0 false] [[:five] 5.0 false] [[:six] 6.0 false] [[:seven] 7.0 false] [[:eight] 8.0 false] [[:nine] 9.0 false]], :new-tests [], :augment-fn #<calc$fn3822 clojush.problems.software.calc$fn3822@47ca32f7>} {:old-tests [], :new-tests [], :augment-fn #<calc$fn3824 clojush.problems.software.calc$fn3824@78d15e01>} {:old-tests [], :new-tests [], :augment-fn #<calc$fn3831 clojush.problems.software.calc$fn3831@7af32927>}] Exception in thread "main" java.lang.AssertionError: Assert failed: Argument key :ultra-mutates-to-parentheses-frequently is not a recognized argument to pushgp. (contains? (clojure.core/deref push-argmap) argkey) at clojush.pushgp.pushgp$load_push_argmap.invoke(pushgp.clj:134) at clojush.pushgp.pushgp$pushgp.invoke(pushgp.clj:257) at clojush.core$_main.doInvoke(core.clj:38) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.lang.Var.invoke(Var.java:415) at user$eval5.invoke(form-init886434695797924965.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6619) at clojure.lang.Compiler.eval(Compiler.java:6609) at clojure.lang.Compiler.load(Compiler.java:7064) at clojure.lang.Compiler.loadFile(Compiler.java:7020) at clojure.main$load_script.invoke(main.clj:294) at clojure.main$init_opt.invoke(main.clj:299) at clojure.main$initialize.invoke(main.clj:327) at clojure.main$null_opt.invoke(main.clj:362) at clojure.main$main.doInvoke(main.clj:440) at clojure.lang.RestFn.invoke(RestFn.java:421) at clojure.lang.Var.invoke(Var.java:419) at clojure.lang.AFn.applyToHelper(AFn.java:163) at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37) — Reply to this email directly or view it on GitHub https://github.com/lspector/Clojush/issues/101.

Lee Spector, Professor of Computer Science Director, Institute for Computational Intelligence Cognitive Science, Hampshire College 893 West Street, Amherst, MA 01002-3359 lspector@hampshire.edu, http://hampshire.edu/lspector/ Phone: 413-559-5352, Fax: 413-559-5438

Vaguery commented 9 years ago

Is this ready to be closed now? Didn't one of your pull requests fix it? I've lost track.

thelmuth commented 9 years ago

Nope. The file hasn't changed in 5 months. Still broken.

Vaguery commented 9 years ago

It looks like a cool project. Maybe somebody (me?) can update it. But yeah maybe "deprecated" would be a good folder.

Vaguery commented 9 years ago

Is this by any chance closable? Seems like it might have been fixed?

lspector commented 9 years ago

Supposedly fixed, but I've only tested that it doesn't raise an exception. I think that Frode (a student in my group), who updated this after the Plush transition, only claimed about the same thing. So we could close this issue but it'd be nice if someone else looked at and ran it a bit more.