Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

conf.py 1.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  1. """
  2. Define paths to all DVC dependency and output files.
  3. """
  4. import os
  5. from pathlib import Path
  6. from urllib.parse import urlparse
  7. from dvc.repo import Repo
  8. dvc_repo = Repo('.')
  9. # Specify the name of your DVC remote
  10. DVC_REMOTE_NAME = 'ahsoka'
  11. # Specify the name of your remote DVC data directory for this project
  12. PROJECT_NAME = 'dvc_dask_use_case'
  13. # Get DVC remote URL to your remote work directory
  14. remote_work_path = urlparse(
  15. dvc_repo.config.config[f'remote "{DVC_REMOTE_NAME}"']['url']).path
  16. remote_work_path = Path(remote_work_path)
  17. # Specify the paths to the DVC stage dependencies and ourputs
  18. data_dir = remote_work_path/PROJECT_NAME/'data'
  19. source_xml = os.path.join(data_dir, 'Posts.xml')
  20. source_tsv = os.path.join(data_dir, 'Posts.tsv')
  21. train_tsv = os.path.join(data_dir, 'Posts-train.tsv')
  22. test_tsv = os.path.join(data_dir, 'Posts-test.tsv')
  23. train_matrix = os.path.join(data_dir, 'matrix-train.p')
  24. test_matrix = os.path.join(data_dir, 'matrix-test.p')
  25. model = os.path.join(data_dir, 'model.p')
  26. metrics_file = 'eval.txt'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...