FelipeRosa / clojure-gsgp

Geometric Semantic Genetic Programming library written in Clojure
MIT License
1 stars 0 forks source link

Add option to create grow or full programs #5

Closed FelipeRosa closed 8 years ago

FelipeRosa commented 8 years ago

Would be nice if we could choose to create full or grow programs, i.e.

(defn rand-program
  [lang max-depth full?]
  (...))

So

(rand-program lang max-depth true)

would generate programas with terminal nodes only at depth max-depth. If full? is set to false then terminal nodes are permitted at any depth.