Skip to content

Commit

Permalink
fixed deps.edn
Browse files Browse the repository at this point in the history
  • Loading branch information
behrica committed Apr 25, 2024
1 parent 032eb4d commit ec7ae36
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
pppmap/pppmap {:mvn/version "1.0.0"}
scicloj/tablecloth {:mvn/version "7.021"}
metosin/malli {:mvn/version "0.14.0"}
generateme/fastmath {:mvn/version "2.4.0"}
aerial.hanami/aerial.hanami {:mvn/version "0.19.0"}}

:paths ["src" "resources"]
Expand All @@ -13,7 +14,7 @@

:build {:deps {io.github.clojure/tools.build {:mvn/version "0.9.6"}
slipset/deps-deploy {:mvn/version "0.2.1"}
io.github.seancorfield/build-clj {:git/tag "v0.9.2" :git/sha "9c9f078"} }
io.github.seancorfield/build-clj {:git/tag "v0.9.2" :git/sha "9c9f078"}}
:ns-default build}


Expand Down
21 changes: 21 additions & 0 deletions test/scicloj/metamorph/metric_test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(ns scicloj.metamorph.metric-test
(:require [clojure.test :refer [is deftest]]
[scicloj.metamorph.ml.metrics :as m]
[tech.v3.datatype.functional :as fun]))


(def actual [1 1 1 1 1 1 1 1 0 0 0 0])
(def prediction [0 0 1 1 1 1 1 1 1 0 0 0])

(deftest test-cm-metrices

(is (= 6.0 (fun/sum (m/true-positives actual prediction))))
(is (= 2.0 (fun/sum (m/false-negatives actual prediction))))
(is (= 1.0 (fun/sum (m/false-positives actual prediction))))
(is (= 3.0 (fun/sum (m/true-negatives actual prediction)))))


(comment
;; not sure what this does
(m/roc-curve [1 1 1 1 1 1 1 1 0 0 0 0]
[0.1 0.2 0.8 0.9 0.8 0.7 0.8 0.9 0.6 0.8 0.8 0.8]))

0 comments on commit ec7ae36

Please sign in to comment.