clearml/examples/cicd/example_task.py
Victor Sonck 51af6e833d
Add CI/CD example (#815)
* Add clearml ci/cd example

* Add section on how to set up CI/CD example
2022-11-08 17:29:49 +02:00

24 lines
503 B
Python

"""This is a dummy ClearML task. This should be replaced by your own experiment code."""
import time
import random
from clearml import Task
from tqdm import tqdm
task = Task.init(
project_name='Github CICD Video',
task_name='dummy_task',
reuse_last_task_id=False
)
random.seed()
for i in tqdm(range(10)):
task.get_logger().report_scalar(
title="Performance Metric",
series="Series 1",
iteration=i,
value=random.randint(0, 100)
)
time.sleep(1)