Combine training and testing data in same var for consistency with other problems
This commit is contained in:
parent
f94b991864
commit
94d4b9d43a
@ -9,15 +9,13 @@
|
|||||||
[x]
|
[x]
|
||||||
(+ (* x x x) x 3))
|
(+ (* x x x) x 3))
|
||||||
|
|
||||||
(def training-data
|
(def train-and-test-data
|
||||||
(let [training-inputs (range -10 11)]
|
(let [train-inputs (range -10 11)
|
||||||
{:inputs training-inputs
|
test-inputs (concat (range -20 -10) (range 11 21))]
|
||||||
:outputs (map target-function training-inputs)}))
|
{:train {:inputs train-inputs
|
||||||
|
:outputs (map target-function train-inputs)}
|
||||||
(def testing-data
|
:test {:inputs test-inputs
|
||||||
(let [testing-inputs (concat (range -20 -10) (range 11 21))]
|
:outputs (map target-function test-inputs)}}))
|
||||||
{:inputs testing-inputs
|
|
||||||
:outputs (map target-function testing-inputs)}))
|
|
||||||
|
|
||||||
(def instructions
|
(def instructions
|
||||||
(list :in1
|
(list :in1
|
||||||
@ -64,5 +62,5 @@
|
|||||||
(def arglist
|
(def arglist
|
||||||
{:instructions instructions
|
{:instructions instructions
|
||||||
:error-function error-function
|
:error-function error-function
|
||||||
:training-data training-data
|
:training-data (:train train-and-test-data)
|
||||||
:testing-data testing-data})
|
:testing-data (:test train-and-test-data)})
|
Loading…
x
Reference in New Issue
Block a user