mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
add dvc and gto
This commit is contained in:
parent
dc20c42419
commit
9491200e44
7 changed files with 34 additions and 0 deletions
3
modules/ml-pipeline/.dvc/.gitignore
vendored
Normal file
3
modules/ml-pipeline/.dvc/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/config.local
|
||||
/tmp
|
||||
/cache
|
||||
0
modules/ml-pipeline/.dvc/config
Normal file
0
modules/ml-pipeline/.dvc/config
Normal file
3
modules/ml-pipeline/.dvcignore
Normal file
3
modules/ml-pipeline/.dvcignore
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Add patterns of files dvc should ignore, which could improve
|
||||
# the performance. Learn more at
|
||||
# https://dvc.org/doc/user-guide/dvcignore
|
||||
1
modules/ml-pipeline/.gto
Normal file
1
modules/ml-pipeline/.gto
Normal file
|
|
@ -0,0 +1 @@
|
|||
stages = ["dev", "staging", "prod"]
|
||||
20
modules/ml-pipeline/Makefile
Normal file
20
modules/ml-pipeline/Makefile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export PYENV_ROOT=$(HOME)/.pyenv
|
||||
export PATH := $(PYENV_ROOT)/bin:$(PATH)
|
||||
PYTHON_VERSION ?= 3.10.12
|
||||
|
||||
.PHONY: init
|
||||
init: dev-pyenv dvc-init
|
||||
|
||||
.PHONY: dev-pyenv
|
||||
dev-pyenv:
|
||||
curl https://pyenv.run | bash || echo "Pyenv - Already installed"
|
||||
pyenv install ${PYTHON_VERSION} || echo "Python version already installed"
|
||||
pyenv global ${PYTHON_VERSION}
|
||||
python3 -m venv .dev_env
|
||||
. .dev_env/bin/activate && pip install --upgrade pip && pip install -r src/training/requirements/requirements-dev.txt && pre-commit install
|
||||
echo "TO ACTIVATE ENVIRONMENT, USE THE FOLLOWING COMMAND"
|
||||
echo "source .dev_env/bin/activate"
|
||||
|
||||
.PHONY: dvc-init
|
||||
dvc-init:
|
||||
. .dev_env/bin/activate && dvc init --subdir
|
||||
4
modules/ml-pipeline/docs/README.md
Normal file
4
modules/ml-pipeline/docs/README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# Docs generation
|
||||
|
||||
This will be done via a sphinx pre-commit hook
|
||||
Only file to adjust is probably the conf.py file if needed
|
||||
3
modules/ml-pipeline/tests/README.md
Normal file
3
modules/ml-pipeline/tests/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Tests
|
||||
|
||||
This is the testing folder for pipeline components and end to end testing
|
||||
Loading…
Add table
Reference in a new issue