Add Hydra example

Add artifacts retrieval example
Rename LightGBM example
This commit is contained in:
allegroai
2021-02-21 14:51:07 +02:00
parent c58e8a4c6a
commit a5a23510e8
5 changed files with 95 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
# data
dataset:
data: rawdata.csv
user: root
password: password
pipeline:
pipeline_1: my_pipeline

View File

@@ -0,0 +1,20 @@
# ClearML - Hydra Example
#
import hydra
from omegaconf import OmegaConf
from clearml import Task
@hydra.main(config_path="config_files", config_name="config")
def my_app(cfg):
# type (DictConfig) -> None
task = Task.init(project_name="examples", task_name="hydra configuration")
logger = task.get_logger()
logger.report_text("You can view your full hydra configuration under Configuration tab in the UI")
print(OmegaConf.to_yaml(cfg))
if __name__ == "__main__":
my_app()

View File

@@ -0,0 +1,2 @@
clearml
hydra-core

View File

@@ -8,7 +8,7 @@ from clearml import Task
# Connecting ClearML with the current process,
# from here on everything is logged automatically
task = Task.init(project_name="examples", task_name="LIGHTgbm")
task = Task.init(project_name="examples", task_name="LightGBM")
print('Loading data...')