DVC ile Veri Sürümlendirmeye Giriş
Ravi Bhadauria
Machine Learning Engineer
pip ile evrensel kurulum $ pip install dvc
$ dvc version
DVC version: 3.40.1 (pip)Platform: Python 3.9.16 on macOS-14.2.1-arm64-arm-64bitConfig: Global: /Users/<username>/Library/Application Support/dvc System: /Library/Application Support/dvcRepo: dvc, git
$ git init
Initialized empty Git repository in /path/to/repo/.git/
$ dvc init
Initialized DVC repository.
You can now commit the changes to git.
$ git status
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .dvc/.gitignore
new file: .dvc/config
new file: .dvcignore
$ git commit -m "initialized dvc"
.gitignore dosyasına benzer
Gerekli olmayan çok sayıda veri dosyası izlenirken faydalı
# .dvcignore # 'data' dizinindeki tüm dosyaları yok say data/*# Ancak 'data/data.csv' dosyasını yok sayma !data/data.csv# Tüm .tmp dosyalarını yok say *.tmp
dvc check-ignore komutunu kullanın$ dvc check-ignore data/file.txt
data/file.txt
-d bayrağıyla kullanın$ dvc check-ignore -d data/file.txt
.dvcignore:3:data/* data/file.txt
pip install dvc ile kurundvc versiondvc init.dvcignore kullanılır.gitignore ile benzer, aynı söz dizimidvc check-ignore <filename>DVC ile Veri Sürümlendirmeye Giriş