Machine Learning のための CI/CD
Ravi Bhadauria
Machine Learning Engineer
dvc remote add コマンドでリモートを設定dvc remote add myAWSremote s3://mybucket
dvc remote modify でカスタマイズ可能dvc remote modify myAWSremote connect_timeout 300
.dvc/config の変更内容 ['remote "myAWSremote"']
url = s3://mybucket
connect_timeout = 300
dvc remote add mylocalremote /tmp/dvc
-d フラグでデフォルトリモートを設定dvc remote add -d mylocalremote /tmp/dvc
.dvc/config の core セクションに割り当てられる[core]
remote = mylocalremote
データを転送するコマンド
dvc push <target>dvc pull <target> git push や git pull に似ている
.dvc は DVC ではなく Git が追跡するdvc push data.csv でも指定可能dvc push-r フラグでデフォルトリモートを上書きdvc push -r myAWSremote data.csv
dvc add /path/to/data/datafile
.dvc ファイルを Git にコミットgit add /path/to/datafile.dvc
git commit /path/to/datafile.dvc -m "Dataset updates"
git push origin main
dvc push
Machine Learning のための CI/CD