Merge pull request #16 from thelmuth/master
Added example for how to use datasets for PSB2.
This commit is contained in:
commit
522ca181f9
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,6 +17,7 @@ notes
|
||||
.clj-kondo/
|
||||
.idea/
|
||||
.calva/
|
||||
.lsp/
|
||||
|
||||
# Don't commit the data directory that we'll
|
||||
# use to hold the data from
|
||||
|
@ -5,6 +5,7 @@
|
||||
:url "https://www.eclipse.org/legal/epl-2.0/"}
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[org.clojure/clojurescript "1.9.946"]
|
||||
[org.clojure/test.check "1.1.0"]]
|
||||
[org.clojure/test.check "1.1.0"]
|
||||
[net.clojars.schneau/psb2 "1.0.0"]]
|
||||
:main ^:skip-aot propeller.core
|
||||
:repl-options {:init-ns propeller.core})
|
||||
|
12
src/propeller/problems/software/fizz_buzz.cljc
Normal file
12
src/propeller/problems/software/fizz_buzz.cljc
Normal file
@ -0,0 +1,12 @@
|
||||
(ns propeller.problems.software.fizz-buzz
|
||||
(:require [psb2.core :as psb2]))
|
||||
|
||||
;; NOTE: Need to change directory below to location of the PSB2 files
|
||||
(def train-and-test (psb2/fetch-examples "PSB2/directory/path/goes/here/" "fizz-buzz" 200 2000))
|
||||
|
||||
(comment
|
||||
|
||||
train-and-test
|
||||
|
||||
problems
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user