From c37bf057c52dc5dc95f134e55eb5be2c02a4eef2 Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Fri, 23 Aug 2019 01:12:58 -0700 Subject: [PATCH] update example-get-started/generate.sh after reviewing vs doc.org/doc/get-started --- example-get-started/generate.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/example-get-started/generate.sh b/example-get-started/generate.sh index d6d799a0..519bfd30 100755 --- a/example-get-started/generate.sh +++ b/example-get-started/generate.sh @@ -41,7 +41,7 @@ dvc remote add -d --local storage s3://dvc-public/remote/get-started dvc remote add -d storage https://remote.dvc.org/get-started git add . -git commit -a -m "Configure default HTTP remote (read-only)" +git commit -m "Configure default HTTP remote (read-only)" git tag -a "2-remote" -m "Read-only remote storage configured." mkdir data @@ -52,14 +52,12 @@ git commit -m "Add raw data to project" git tag -a "3-add-file" -m "Data file added." dvc push -mkdir src wget https://code.dvc.org/get-started/code.zip unzip code.zip rm -f code.zip -echo "dvc[s3]" >> src/requirements.txt cp $HERE/code/README.md $REPO_PATH git add . -git commit -m 'Add source code files to repo' +git commit -m "Add source code files to repo" git tag -a "4-sources" -m "Source code added." pip install -r src/requirements.txt @@ -98,17 +96,21 @@ dvc run -f evaluate.dvc \ python src/evaluate.py model.pkl data/features auc.metric git add .gitignore evaluate.dvc auc.metric git commit -m "Create evaluation stage" -git tag -a "baseline-experiment" -m "Baseline experiment" +git tag -a "baseline-experiment" -m "Baseline experiment evaluation" git tag -a "8-evaluation" -m "Baseline evaluation stage created." dvc push sed -e s/max_features=5000\)/max_features=6000\,\ ngram_range=\(1\,\ 2\)\)/ -i "" \ src/featurization.py +dvc repro train.dvc +git commit -am "Reproduce model using bigrams" +git tag -a "9-bigrams-model" -m "Model retrained using bigrams." + dvc repro evaluate.dvc -git commit -a -m "Reproduce evaluation stage using bigrams" -git tag -a "bigrams-experiment" -m "Bigrams experiment" -git tag -a "9-bigrams" -m "Bigrams evaluation stage created." +git commit -am "Evaluate bigrams model" +git tag -a "bigrams-experiment" -m "Bigrams experiment evaluation" +git tag -a "10-bigrams-experiment" -m "Evaluated bigrams model." dvc push popd @@ -117,7 +119,7 @@ echo "`cat <