DVC integration module
This module allows to use MLDev together with DVC.
See Stage
class that implements a stage which uses DVC to set up dependencies.
- class Stage(name='', params={}, env={}, inputs={}, outputs={}, script=[])[исходный код]
Базовые классы:
object
Main class for DVC pipeline stages.
Converts
script
to a single command line and creates a stage in DVC inprepare
. Reproduces the stage via DVCrepro
inrun
.Adds
inputs
as input dependencies andoutputs
as results and places them under version control. IfMLDEV_NO_COMMIT
feature is not set also makes a git commit with DVC’s files.Accepts the following parameters:
- Параметры
inputs – lists files and folders that this stage depends upon
outputs – lists files and folders that this stage produces
and that will be added to version control :param params: parameters for the commands being invoked :param env: additional environmental variables to pass to commands :param script: a list of commands to invoke
- prepare(stage_name)[исходный код]
- run(stage_name)[исходный код]