Main module

This is the entry point of the mldev command.

init(args)[исходный код]

Implement mldev init command. Initializes the experiment. Runs in the MLDEV environment

See mldev --help for more details.

See init_*.sh scripts for exact shell commands being run.

Параметры

args

Результат

run(args)[исходный код]

Implements mldev run command. The command itself runs in the MLDEV environment, while stages and services of the experiment run in the EXPERIMENT environment.

See mldev --help for more details.

Calls run_experiment after checking the experiment spec and preparing the environment.

Параметры

args

Результат

run_experiment(experiment='./experiment.yml', pipeline='pipeline')[исходный код]

Runs the pipeline from the experiment in the MLDEV environment. Stages and services execute in the EXPERIMENT environment (<base_folder>/venv)

Calls pipeline() loaded from the experiment. If the pipeline is not callable, it treats the object with name given by pipeline as a list and passes it to GenericPipeline as runs.

Uses YamlLoaderWithEnvVars to load the experiment file.

Параметры
  • experiment – a path to experiment spec, in yaml

  • pipeline – the name of the pipeline (top level attribute name) to call

Результат

error_code, 0 if OK, 1 if not

setup_logging()[исходный код]

Inits logging for mldev when run as a tool

Результат

urls(args)[исходный код]

Implements mldev urls command. Returns urls for active services. Runs in the MLDEV environment.

See mldev --help for more info

Параметры

args

Результат