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 92 forks source link

Remove `problem-specific-initial-report` from EDN output #264

Closed NicMcPhee closed 5 years ago

NicMcPhee commented 5 years ago

In clojush.pushgp.report/initial-report we filter out several entries in argmap that have functions as values, but problem-specific-initial-report got missed and should be added to the list.

A better solution would be to filter argmap removing any entries where the value makes fn? true.

The problem is that if we write out a function value in the EDN file we get something like

#object[user$frogs 0x3a68bbcd "user$frogs@3a68bbcd"]

This can't be successfully read back in by the EDN reader because it (a) refers to a memory location that may not be meaningful in the new context and (b) doesn't actually contain the function definition.

We'll probably address this and @pluck011 will generate a pull request.