DVC के साथ डेटा वर्ज़निंग परिचय
Ravi Bhadauria
Machine Learning Engineer
pip से सार्वभौमिक रूप से इंस्टॉल करें $ 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 फाइल जैसी
तब उपयोगी जब कई अनावश्यक डेटा फाइलें हों
# .dvcignore # 'data' डायरेक्टरी की सभी फाइलें इग्नोर करें data/*# लेकिन 'data/data.csv' को इग्नोर न करें !data/data.csv# सभी .tmp फाइलें इग्नोर करें *.tmp
dvc check-ignore कमांड का उपयोग करें$ dvc check-ignore data/file.txt
data/file.txt
-d फ्लैग के साथ चलाएँ$ dvc check-ignore -d data/file.txt
.dvcignore:3:data/* data/file.txt
pip install dvc से DVC इंस्टॉल करेंdvc versiondvc init.dvcignore एक्सक्लूड की गई फाइलें तय करता है.gitignore जैसा, वही सिंटैक्सdvc check-ignore <filename>DVC के साथ डेटा वर्ज़निंग परिचय