Change outputs to turn instructions list into string for the analysis scripts

This commit is contained in:
klingliu 2021-07-06 17:44:45 -04:00
parent 51ff11c362
commit 744ab184ba
8 changed files with 10 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<component name="libraryTable">
<library name="Leiningen: clojure-complete:0.2.5">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/clojure-complete/clojure-complete/0.2.5/clojure-complete-0.2.5.jar!/" />
<root url="jar://$USER_HOME$/.m2/repository/clojure-complete/clojure-complete/0.2.5/clojure-complete-0.2.5.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />

View File

@ -1,7 +1,7 @@
<component name="libraryTable">
<library name="Leiningen: nrepl:0.6.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/nrepl/nrepl/0.6.0/nrepl-0.6.0.jar!/" />
<root url="jar://$USER_HOME$/.m2/repository/nrepl/nrepl/0.6.0/nrepl-0.6.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />

View File

@ -1,7 +1,7 @@
<component name="libraryTable">
<library name="Leiningen: org.clojure/clojure:1.10.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/clojure/1.10.0/clojure-1.10.0.jar!/" />
<root url="jar://$USER_HOME$/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />

View File

@ -1,7 +1,7 @@
<component name="libraryTable">
<library name="Leiningen: org.clojure/core.specs.alpha:0.2.44">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.jar!/" />
<root url="jar://$USER_HOME$/.m2/repository/org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />

View File

@ -1,7 +1,7 @@
<component name="libraryTable">
<library name="Leiningen: org.clojure/spec.alpha:0.2.176">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar!/" />
<root url="jar://$USER_HOME$/.m2/repository/org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />

View File

@ -5,8 +5,8 @@
<output-test url="file://$MODULE_DIR$/target/classes" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/dev-resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
@ -23,6 +23,7 @@
<orderEntry type="library" name="Leiningen: com.google.javascript/closure-compiler-unshaded:v20170910" level="project" />
<orderEntry type="library" name="Leiningen: com.google.jsinterop/jsinterop-annotations:1.0.0" level="project" />
<orderEntry type="library" name="Leiningen: com.google.protobuf/protobuf-java:3.0.2" level="project" />
<orderEntry type="library" name="Leiningen: net.clojars.schneau/psb2:1.0.0" level="project" />
<orderEntry type="library" name="Leiningen: nrepl:0.6.0" level="project" />
<orderEntry type="library" name="Leiningen: org.clojure/clojure:1.10.0" level="project" />
<orderEntry type="library" name="Leiningen: org.clojure/clojurescript:1.9.946" level="project" />

BIN
results-summ.txt Normal file

Binary file not shown.

View File

@ -34,7 +34,7 @@
max-initial-plushy-size]
:as argmap}]
;;
(println {:starting-args argmap})
(prn {:starting-args (update (update argmap :error-function str) :instructions str)})
(println)
;;
(loop [generation 0
@ -52,8 +52,8 @@
(cond
;; Success on training cases is verified on testing cases
(zero? (:total-error best-individual))
(do (println {:success-generation generation})
(println {:total-test-error (:total-error (error-function argmap best-individual :test))})
(do (prn {:success-generation generation})
(prn {:total-test-error (:total-error (error-function argmap best-individual :test))})
(#?(:clj shutdown-agents))
)
;;