Skip to content

Commit

Permalink
Fix minor formatting (#298)
Browse files Browse the repository at this point in the history
* Removed dangling comments and double spaces

* cljfmt fix
  • Loading branch information
anthony-khong authored Nov 23, 2020
1 parent 482c4b9 commit a63b925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions test/zero_one/geni/data_sources_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,8 @@
(let [temp-file (.toString (create-temp-file! ".libsvm"))
read-df (do (g/write-libsvm! (libsvm-df) temp-file {:mode "overwrite"})
(g/read-libsvm! temp-file))]
(map #(get-in % [:features :indices]) (g/collect (libsvm-df))) => (map #(get-in % [:features :indices]) (g/collect read-df))
(map #(get-in % [:features :values]) (g/collect (libsvm-df))) => (map #(get-in % [:features :values]) (g/collect read-df))

;; (map :indices (g/collect (libsvm-df))) => (map :indices (g/collect read-df))
))
(map #(get-in % [:features :indices]) (g/collect (libsvm-df))) => (map #(get-in % [:features :indices]) (g/collect read-df))
(map #(get-in % [:features :values]) (g/collect (libsvm-df))) => (map #(get-in % [:features :values]) (g/collect read-df))))

(fact "Can read and write json"
(let [temp-file (.toString (create-temp-file! ".json"))
Expand Down
2 changes: 1 addition & 1 deletion test/zero_one/geni/ml_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
(let [estimator (ml/random-forest-classifier {})
model (ml/fit (libsvm-df) estimator)]
(fact "Attributes are callable"
(:values (ml/feature-importances model)) => #(every? double? %)
(:values (ml/feature-importances model)) => #(every? double? %)
(ml/total-num-nodes model) => int?
(ml/trees model) => seq?)))

Expand Down

0 comments on commit a63b925

Please sign in to comment.