mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix Task type in automation examples
This commit is contained in:
parent
2f5b519cd8
commit
6221c6c096
@ -3,7 +3,7 @@ from random import sample
|
|||||||
from trains import Task
|
from trains import Task
|
||||||
|
|
||||||
# Connecting TRAINS
|
# Connecting TRAINS
|
||||||
task = Task.init(project_name='examples', task_name='Random Hyper-Parameter Search Example')
|
task = Task.init(project_name='examples', task_name='Random Hyper-Parameter Search Example', task_type=Task.TaskTypes.optimizer)
|
||||||
|
|
||||||
# Create a hyper-parameter dictionary for the task
|
# Create a hyper-parameter dictionary for the task
|
||||||
params = dict()
|
params = dict()
|
||||||
|
@ -2,7 +2,7 @@ from trains import Task
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
# Initialize the Task Pipe's first Task used to start the Task Pipe
|
# Initialize the Task Pipe's first Task used to start the Task Pipe
|
||||||
task = Task.init('examples', 'Simple Controller Task')
|
task = Task.init('examples', 'Simple Controller Task', task_type=Task.TaskTypes.controller)
|
||||||
|
|
||||||
# Create a hyper-parameter dictionary for the task
|
# Create a hyper-parameter dictionary for the task
|
||||||
param = dict()
|
param = dict()
|
||||||
|
@ -14,7 +14,7 @@ from trains import Task
|
|||||||
os.environ["TRAINS_DOCKER_IMAGE"] = "nvidia/cuda --network host"
|
os.environ["TRAINS_DOCKER_IMAGE"] = "nvidia/cuda --network host"
|
||||||
|
|
||||||
# initialize TRAINS
|
# initialize TRAINS
|
||||||
task = Task.init(project_name="examples", task_name="Remote Jupyter NoteBook")
|
task = Task.init(project_name="examples", task_name="Remote Jupyter NoteBook", task_type=Task.TaskTypes.service)
|
||||||
|
|
||||||
# get rid of all the runtime TRAINS
|
# get rid of all the runtime TRAINS
|
||||||
preserve = (
|
preserve = (
|
||||||
|
Loading…
Reference in New Issue
Block a user