mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +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
|
||||
|
||||
# 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
|
||||
params = dict()
|
||||
|
@ -2,7 +2,7 @@ from trains import Task
|
||||
from time import sleep
|
||||
|
||||
# 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
|
||||
param = dict()
|
||||
|
@ -14,7 +14,7 @@ from trains import Task
|
||||
os.environ["TRAINS_DOCKER_IMAGE"] = "nvidia/cuda --network host"
|
||||
|
||||
# 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
|
||||
preserve = (
|
||||
|
Loading…
Reference in New Issue
Block a user