Skip to content

Commit

Permalink
Merge 02f604a into 200a565
Browse files Browse the repository at this point in the history
  • Loading branch information
thelmuth committed Jun 7, 2017
2 parents 200a565 + 02f604a commit 63672d3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/clojush/problems/software/even_squares.clj
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,6 @@
(println (format "Test Case: %3d | Input/Output: %s" i (str case))))
(println ";;******************************"))

; Define error function. For now, each run uses different random inputs
(defn even-squares-error-function
"Returns the error function for the Even Squares problem. Takes as
input Even Squares data domains."
[data-domains]
(let [[train-cases test-cases] (map #(sort-by first %)
(map even-squares-test-cases
(test-and-train-data-from-domains data-domains)))]
(when true ;; Change to false to not print test cases
(doseq [[i case] (map vector (range) train-cases)]
(println (format "Train Case: %3d | Input/Output: %s" i (str case))))
(doseq [[i case] (map vector (range) test-cases)]
(println (format "Test Case: %3d | Input/Output: %s" i (str case)))))
(make-even-squares-error-function-from-cases train-cases test-cases)))

(defn even-squares-report
"Custom generational report."
[best population generation error-function report-simplifications]
Expand Down

0 comments on commit 63672d3

Please sign in to comment.