Commit 14af2ce2 authored by Jonathan Poalses's avatar Jonathan Poalses

finished, I think. Still have to seperate out the training and testing samples though...

parent e5d7f4a8
...@@ -113,12 +113,7 @@ ...@@ -113,12 +113,7 @@
(let [filedata (clojure.edn/read-string (slurp filename)) (let [filedata (clojure.edn/read-string (slurp filename))
key-results (map detect-sample-dialect (keys filedata)) key-results (map detect-sample-dialect (keys filedata))
expected-results (map keyword (vals filedata))] expected-results (map keyword (vals filedata))]
(println filedata)
(println key-results)
(println expected-results)
(let [result-comparison (map zero? (map compare key-results expected-results))] (let [result-comparison (map zero? (map compare key-results expected-results))]
(println (interleave (keys filedata) result-comparison))
(println (zipmap expected-results result-comparison))
(println (str (count (filter true? result-comparison)) "/" (count result-comparison) " correct."))))) (println (str (count (filter true? result-comparison)) "/" (count result-comparison) " correct.")))))
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
(def command-line-options (def command-line-options
"Command line options parsing rules." "Command line options parsing rules."
[["-l" "--log-level LEVEL" (str "Logging level " (seq log-levels)) [["-l" "--log-level LEVEL" (str "Logging level " (seq log-levels))
:default :info :default :error
:parse-fn #(keyword (string/join (rest %))) :parse-fn #(keyword (string/join (rest %)))
:validate [#(contains? log-levels %) :validate [#(contains? log-levels %)
(str "Must be one of: " (seq log-levels))]] (str "Must be one of: " (seq log-levels))]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment