Last active
November 8, 2016 17:58
-
-
Save jaor/b9905e2b5708e244578746f45eb95098 to your computer and use it in GitHub Desktop.
model and evaluate all sources in a project
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
(define (create-evaluations project-id) | |
(let (src-ids (resource-ids (list-sources {"project" project-id}))) | |
(for (src-id src-ids) | |
(let (ds-id (create-dataset src-id) | |
[train-id test-id] (create-random-dataset-split ds-id 0.8) | |
ens-id (create-ensemble train-id {"number_of_models" 100})) | |
(create-evaluation test-id ens-id))))) | |
(define result (wait* (create-evaluations "project/xxxxxxxxxx"))) |
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
(define result | |
(let (src-ids (resource-ids (list-sources {"project" "pepe"}))) | |
(for (src-id src-ids) | |
(let (ds-id (create-dataset src-id) | |
[train-id test-id] (create-random-dataset-split ds-id 0.8) | |
ens-id (create-ensemble train-id {"number_of_models" 100}) | |
eval-id (create-and-wait-evaluation test-id ens-id)) | |
{"ensemble" ens-id "evaluation" eval-id})))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment