Merge pull request #16 from thelmuth/master

Added example for how to use datasets for PSB2.
This commit is contained in:
Lee Spector 2021-06-20 06:58:14 -04:00 committed by GitHub
commit 522ca181f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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})

View 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
)