Skip to content

Commit

Permalink
Validate options (#34)
Browse files Browse the repository at this point in the history
* added options validation
* renamed :other-metrices -> :other-metrics
  • Loading branch information
behrica authored Jan 27, 2025
1 parent 90f2f62 commit 79a3d1a
Show file tree
Hide file tree
Showing 20 changed files with 189 additions and 163 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: quarto-dev/quarto-actions/setup@v2
# Runs a single command using the runners shell
- name: Run CI
run: clojure -T:build ci
run: clojure -X:deps prep :aliases [:test] && clojure -T:build ci

- name: copy news data
run: |
Expand Down
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
unreleased



* use malli to describe options
* renamed :other-metrices -> :other-metrics

0.12
* fixes #30 - dummy classifier does not predict by majority #30
Expand Down
24 changes: 19 additions & 5 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
{:jvm-opts ["-Djava.awt.headless=true"]
:extra-deps {io.github.nextjournal/clerk {:mvn/version "0.17.1102"}
org.scicloj/clay {:mvn/version "2-beta27"}
org.scicloj/scicloj.ml.smile {:mvn/version "7.4.4"}
org.scicloj/scicloj.ml.smile
{:git/url "https://github.com/scicloj/scicloj.ml.smile"
:git/sha "b302bd8846a5f99abfb92276c3b8c09fd91b4a92"}
;{:mvn/version "7.4.4"}

org.scicloj/tableplot {:mvn/version "1-beta1.1"}
datacraft-sciences/confuse {:mvn/version "0.1.1"}
ch.qos.logback/logback-classic {:mvn/version "1.5.16"}
Expand All @@ -62,19 +66,29 @@
:extra-paths ["test"]
:extra-deps {com.clojure-goes-fast/clj-memory-meter {:mvn/version "0.3.0"}
lambdaisland/kaocha {:mvn/version "1.91.1392"}
org.scicloj/scicloj.ml.smile {:mvn/version "7.4.4"}
;org.scicloj/scicloj.ml.smile {:mvn/version "7.4.4"}
org.scicloj/scicloj.ml.smile
{:git/url "https://github.com/scicloj/scicloj.ml.smile"
:git/sha "b302bd8846a5f99abfb92276c3b8c09fd91b4a92"}

criterium/criterium {:mvn/version "0.4.6"}

datacraft-sciences/confuse {:mvn/version "0.1.1"}
ch.qos.logback/logback-classic {:mvn/version "1.5.16"}
org.mapdb/mapdb {:mvn/version "3.1.0"}
}}
org.mapdb/mapdb {:mvn/version "3.1.0"}}}
:runner {:main-opts ["-m" "kaocha.runner"]}

:exp {:jvm-opts ["-Djdk.attach.allowAttachSelf" "-Xmx8G" "--add-opens=java.base/java.io=ALL-UNNAMED"]
:extra-paths ["exp" "test"]
:extra-deps {com.clojure-goes-fast/clj-memory-meter {:mvn/version "0.3.0"}
ch.qos.logback/logback-classic {:mvn/version "1.5.16"}
criterium/criterium {:mvn/version "0.4.6"}
org.scicloj/scicloj.ml.smile {:mvn/version "7.4.4"}

org.scicloj/scicloj.ml.smile
{:git/url "https://github.com/scicloj/scicloj.ml.smile"
:git/sha "b302bd8846a5f99abfb92276c3b8c09fd91b4a92"}

;;org.scicloj/scicloj.ml.smile {:mvn/version "7.4.4"}
com.taoensso/carmine {:mvn/version "3.4.1"}}}

:smoke-test {:jvm-opts ["-Djdk.attach.allowAttachSelf" "-Xmx1G" "--add-opens=java.base/java.io=ALL-UNNAMED"]
Expand Down
12 changes: 2 additions & 10 deletions notebooks/roc_curve.clj
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
(ns roc-curve
(:require
[nextjournal.clerk :as clerk]
[scicloj.metamorph.core :as mm]
[scicloj.metamorph.ml :as ml]
[scicloj.metamorph.ml.learning-curve :as lc]
[scicloj.metamorph.ml.viz :as ml-viz]
[scicloj.metamorph.ml.viz.learning-curve :as mlviz.lc]
[nextjournal.clerk :as clerk]
[scicloj.metamorph.ml.metrics :as m]
[nextjournal.clerk.viewer]
[tablecloth.api :as tc]
[scicloj.metamorph.ml.loss]
[scicloj.ml.smile.classification]
[tablecloth.pipeline :as tc-mm]
[tech.v3.dataset]
[tech.v3.dataset.metamorph :as mds]))
[tech.v3.dataset]))

(comment
(clerk/clear-cache!)
Expand Down
Loading

0 comments on commit 79a3d1a

Please sign in to comment.