Created
June 27, 2017 17:48
-
-
Save joycex99/36072242a770a57f5f4d189a2c371ad8 to your computer and use it in GitHub Desktop.
This file contains 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
(defn train | |
"Trains network for :epoch-count number of epochs" | |
[] | |
(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