[Push] Input stack (from Psh)
Lee Spector
lspector at hampshire.edu
Fri Jun 25 18:06:36 EDT 2010
Even for symbolic regression you might want to use an instruction that pushes the input value, rather than relying on a single push before program execution. While it's possible for a correct program to work from only that initial push, such a program will often have to dup the value a lot and do a lot of stack manipulation to get the copies into the right places. Defining an input instruction (manually, if necessary, although I think Tom will be able to tell you how to do it in Psh) that re-pushes the value whenever it is called can make it a lot easier to express a correct program.
-Lee
On Jun 25, 2010, at 5:57 PM, PerPlex Ed wrote:
> Ok. Then I guess I'll just wait.
> At the moment I'm still doing simple symbolic regression problems so pushing a value on the float stack is just fine.
> Thanks for the exhaustive explanation!
>
> PerPlexEd
>
>
> Lee said:
>>> Is there a description of the Input stack anywhere?
>> Not really, but it should be in the new documentation Tom is starting to put together.
>>> Is it implemented only in Psh?
>> The Psh version is implemented only in Psh, although there are auxiliary stacks and problem-specific input functions that use them in Schush and Clojush. And ways to accomplish the same thing in other implementations. If Tom's scheme works well we should try to spread it.
>
>
>
>
> _______________________________________________
> Push mailing list
> Push at lists.hampshire.edu
> https://lists.hampshire.edu/mailman/listinfo/push
--
Lee Spector, Professor of Computer Science
School of Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspector at hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438
Check out Genetic Programming and Evolvable Machines:
http://www.springer.com/10710 - http://gpemjournal.blogspot.com/
More information about the Push
mailing list