-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from oci-labs/develop
Develop
- Loading branch information
Showing
2,213 changed files
with
611 additions
and
3,469 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
gsutil -m cp -r ./data/ImageEveryUnit/. gs://deep_gauge/data/ | ||
gsutil -m cp -r ./trainer/. gs://deep_gauge | ||
|
||
## make a package | ||
tar -czvf ensemble_package.tar.gz /ensemble_package |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
python customEstimator.py --dev=True --retrain_primary_models=False --hidden_units='[100, 200, 300, 500]' --verbosity=DEBUG | ||
|
||
|
||
####### | ||
gcloud ml-engine local train \ | ||
--module-name trainer_from_storage.task \ | ||
--package-path /home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage \ | ||
-- \ | ||
--primary_models_directory=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/primary_models \ | ||
--ensemble_architecture_path=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/temporary_models \ | ||
--path_to_images=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/data/ImageEveryUnit \ | ||
--bin_path=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/dumps/ \ | ||
--export_dir=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/exported_model | ||
|
||
|
||
|
||
|
||
####### on GCP | ||
gcloud ml-engine jobs submit training ensemble_training \ | ||
--scale-tier basic \ | ||
--package-path /home/khodayarim/PycharmProjects/ensamble_package.tar.gz \ | ||
--module-name ensemble_package.task \ | ||
--job-dir gs://deep_gauge \ | ||
--region "us-east1" | ||
-- \ | ||
--primary_models_directory=gs://deep_gauge/ensemble_package/misc/primary_models \ | ||
|
||
|
||
|
||
|
||
|
||
|
||
--staging-bucket gs://deep_gauge/ensemble_package \ | ||
|
||
--packages additional-dep1.tar.gz,dep2.whl | ||
-- \ | ||
--primary_models_directory=gs://deep_gauge/ensemble_package/misc/primary_models \ | ||
|
||
--module-name trainer_from_storage.task \ | ||
--package-path gs://deep_gauge/ensemble_package \ | ||
-- \ | ||
--primary_models_directory=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/primary_models \ | ||
--ensemble_architecture_path=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/temporary_models \ | ||
--path_to_images=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/data/ImageEveryUnit \ | ||
--bin_path=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/dumps/ \ | ||
--export_dir=/home/khodayarim/PycharmProjects/DeepGauge-ML-Demo/CustomEstimator/modules/ensemble_modules/trainer_from_storage/logs/exported_model | ||
|
||
|
||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
CustomEstimator/modules/ensemble_modules/trainer_from_storage/bucket_data.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
BUCKET_NAME="tt_ttt" | ||
echo $BUCKET_NAME | ||
REGION=us-central1 | ||
gsutil mb -l $REGION gs://$BUCKET_NAME/ | ||
|
||
## to copy the data folder to your Cloud Storage bucket. | ||
gsutil cp -r data gs://$BUCKET_NAME/data |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
24 changes: 24 additions & 0 deletions
24
CustomEstimator/modules/ensemble_modules/trainer_from_storage/setup.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
REQUIRED_PACKAGES = ['argparse', | ||
'tensorflow==1.10.0', | ||
'glob', | ||
'os', | ||
'sklearn==1.19.2', | ||
'numpy==1.14.5', | ||
'pandas==0.23.4', | ||
'MultiColProcessor', | ||
'pickle', | ||
'json', | ||
'collections', | ||
'multiprocessing'] | ||
|
||
setup( | ||
name='deepGauge_custom_estimator', | ||
version='0.1', | ||
install_requires=REQUIRED_PACKAGES, | ||
packages=find_packages(), | ||
include_package_data=True, | ||
description='' | ||
) |
28 changes: 28 additions & 0 deletions
28
CustomEstimator/modules/ensemble_modules/trainer_from_storage/train.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
gcloud ml-engine jobs submit training "$JOB_ID" \ | ||
--stream-logs \ | ||
--module-name trainer.task \ | ||
--package-path trainer \ | ||
--staging-bucket "$BUCKET" \ | ||
--region us-central1 \ | ||
--runtime-version=1.4 \ | ||
-- \ | ||
--output_path "${GCS_PATH}/training" \ | ||
--eval_data_paths "${GCS_PATH}/preproc/eval*" \ | ||
--train_data_paths "${GCS_PATH}/preproc/train*" | ||
|
||
|
||
## | ||
REGION=us-central1 | ||
JOB_NAME=deep_gauge_1 | ||
BUCKET=gs://deep_gauge | ||
PACKAGE_PATH=CustomEstimator/modules/ensemble_modules/trainer_from_storage/trainer | ||
|
||
|
||
gcloud ml-engine jobs submit training $JOB_NAME \ | ||
--runtime-version 1.8 \ | ||
--module-name trainer.task \ | ||
--package-path "$PACKAGE_PATH" \ | ||
--staging-bucket "$BUCKET" \ | ||
--region $REGION \ | ||
-- \ | ||
--verbosity DEBUG |
Empty file.
Oops, something went wrong.