mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
51af6e833d
* Add clearml ci/cd example * Add section on how to set up CI/CD example
24 lines
503 B
Python
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)
|