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
| --- | |
| - step: | |
| name: Build-dl4j-mnist-single-layer-java-app | |
| image: neomatrix369/dl4j-mnist-single-layer:v0.5 | |
| command: | |
| - cd ${VH_REPOSITORY_DIR} | |
| - ./buildUberJar.sh | |
| - echo "~~~ Copying the build jar file into ${VH_OUTPUTS_DIR}" | |
| - cp target/MLPMnist-1.0.0-bin.jar ${VH_OUTPUTS_DIR}/MLPMnist-1.0.0.jar |
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
| ./runMLPMnist.sh --action evaluate --input-dir ${VH_INPUTS_DIR}/model | |
| or | |
| java -Djava.library.path="" \ | |
| -jar target/MLPMnist-1.0.0-bin.jar \ | |
| --action evaluate --input-dir ${VH_INPUTS_DIR}/model |
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
| ./runMLPMnist.sh --action train --output-dir ${VH_OUTPUTS_DIR} | |
| or | |
| java -Djava.library.path="" \ | |
| -jar target/MLPMnist-1.0.0-bin.jar \ | |
| --action train --output-dir ${VH_OUTPUTS_DIR} |
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
| public static void main(String[] args) throws Exception { | |
| MLPMnistSingleLayerRunner mlpMnistRunner = new MLPMnistSingleLayerRunner(); | |
| JCommander.newBuilder() | |
| .addObject(mlpMnistRunner) | |
| .build() | |
| .parse(args); | |
| mlpMnistRunner.execute(); | |
| } |
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
| <script src="https://gist.github.com/joannapurosto/75747d1852c95b17bbfacef25f147fdc.js"></script> |
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
| {"token":"a-very-secret-value-here"} |
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
| curl -H 'Content-Type: application/json' -X POST -d '{"username":"alexey", "password":"password"}' 'https://app.valohai.com/api/v0/get-token/' |
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
| [ | |
| { | |
| "name": "mnist-train-images.gz", | |
| "ctime": "2019-08-06T10:30:33.766038Z", | |
| "size": 9630629, | |
| "url": "https://valohaidataprod.blob.core.windows.net/valohaidataprod/data/01DH1/key/output-19/mnist-train-images.gz?se=2019-08-25T12%3A29%3A36Z&sp=r&sv=2018-11-09...", | |
| "id": "016c667b-0425-413c-2746-9597e2140e6d" | |
| } | |
| ... | |
| ] |
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
| #!/bin/bash | |
| execution_id="$1" | |
| function get_execution_data() { | |
| curl -L \ | |
| -H 'Content-Type: application/json' \ | |
| -H "Authorization: Token $VALOHAI_API_TOKEN" \ | |
| "https://app.valohai.com/api/v0/executions/$execution_id" | |
| } |
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
| #!/bin/bash | |
| set -o pipefail | |
| # shellcheck disable=SC2153 | |
| execution_id="$1" | |
| function get_execution_data() { | |
| curl -L \ | |
| -H 'Content-Type: application/json' \ | |
| -H "Authorization: Token $VALOHAI_API_TOKEN" \ | |
| "https://app.valohai.com/api/v0/executions/$execution_id" |