Created
September 23, 2017 22:30
-
-
Save joycex99/7436bc5870353fd21bbda1f2cbb9227e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def params | |
{:optimizer (adam/adam) | |
:batch-size 100 | |
:epoch-count 50 | |
:epoch-size 200000}) | |
(defn train | |
[] | |
(let [network (network/linear-network network-description) | |
[train-orig test-ds] (get-train-test-dataset) | |
train-ds (experiment-util/infinite-class-balanced-dataset train-orig | |
:class-key :label | |
:epoch-size (:epoch-size params))] | |
(experiment-train/train-n network train-ds test-ds | |
:batch-size (:batch-size params) | |
:epoch-count (:epoch-count params) | |
:optimizer (:optimizer params) | |
:test-fn f1-test-fn))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment