-
Create a directory for the project and initialize it:
mkdir mnist
{{execute}}cd mnist
{{execute}}git init
{{execute}}dvc init
{{execute}}tree -a -I .git
{{execute}} -
Create and config a local data storage:
mkdir /root/dvc-storage
{{execute}}dvc remote add --default \ storage /root/dvc-storage ```{{execute}} `dvc remote list`{{execute}} `cat .dvc/config`{{execute}}
-
Add the code and create other directories:
mkdir code data metrics
{{execute}}ls /usr/local/share/
{{execute}}tar -C /tmp -xzvf \ /usr/local/share/mnist-example-code.tgz ```{{execute}} `tree /tmp/mnist-example-code/`{{execute}} `cp /tmp/mnist-example-code/SVM/*.py code/`{{execute}} `tree`{{execute}}
-
Create a virtualenv and install the requirements:
virtualenv -p python3 .env
{{execute}}echo .env/ >> .gitignore
{{execute}}echo __pycache__/ >> .gitignore
{{execute}}source .env/bin/activate
{{execute}}cat << EOF > requirements.txt numpy==1.15.4 pandas==0.23.4 python-dateutil==2.7.5 pytz==2018.7 scikit-learn==0.20.2 scipy==1.2.0 six==1.12.0 sklearn==0.0 EOF ```{{execute}} `cat requirements.txt`{{execute}} `pip install -r requirements.txt`{{execute}}
-
Commit progress to Git:
git status -s
{{execute}}git add .
{{execute}}git commit -m "Initialized project"
{{execute}}
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.