Skip to content

Commit

Permalink
Update make-weight-fn and new release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jColeChanged committed Nov 28, 2022
1 parent 8aa92cc commit c4cf6b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@
"-XX:+TieredCompilation"]
:plugins [[org.clojars.joshua/josh.benchmarking "0.0.4"]]
:repl-options {:init-ns josh.meanings.core}
:deploy-repositories [["releases" :clojars]
["snapshots" :clojars]])
:deploy-repositories [["clojars" {:url "https://repo.clojars.org"
:sign-releases false
:username :env/clojars_username
:password :env/clojars_password}]])
2 changes: 1 addition & 1 deletion src/josh/meanings/initializations/afk.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
current set of clusters."
[distance-fn clusters]
(fn [p2]
(apply max (for [p1 clusters] (distance-fn p1 p2)))))
(apply min (for [p1 clusters] (distance-fn p1 p2)))))

(s/fdef q-of-x
:args (s/cat
Expand Down
2 changes: 1 addition & 1 deletion src/josh/meanings/initializations/mc2.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
current set of clusters."
[distance-fn clusters]
(fn [p2]
(square (apply max (for [p1 clusters] (distance-fn p1 p2))))))
(square (apply min (for [p1 clusters] (distance-fn p1 p2))))))


(s/fdef mcmc-sample :args (s/cat :distance-fn ifn? :c t-point :rsp t-points) :ret t-points)
Expand Down

0 comments on commit c4cf6b5

Please sign in to comment.