Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I'M Having Trouble Using Task.Clone And Task.Create- I'M Running Two Experiments One After The Other, And I Would Like To Report The Second Experiment To A New Task (New Experiment On The Server) But It Doesn'T Work. The Flow Is Task.Init -> Experimen

hi, i'm having trouble using Task.clone and Task.create- i'm running two experiments one after the other, and i would like to report the second experiment to a new task (new experiment on the server) but it doesn't work. The flow is Task.init -> experiment -> task.close() -> Task.create/clone -> new_task.close()
and i'm getting this response:

020-06-22 05:51:48,259 - trains.Task - ERROR - Action failed <400/110: models.update_for_task/v1.0 (Invalid task status (model can only be updated for tasks in the ['created', 'in_progress'] states): id=571d479683574783a396c0f983a7cca0, company=d1bd92a3b039400cbafc60a7a5b1e52b)> (task=571d479683574783a396c0f983a7cca0, name=2020.06.22.05.38.debug_train - epoch_0002, comment=Created by task id: 571d479683574783a396c0f983a7cca0, override_model_id=e42340eab46a4238b108 da8af109f3b2)and it doesn't open a new task at all in the server... What am i doing wrong?

  
  
Posted 3 years ago
Votes Newest

Answers 7


Task.create will create a new Task (and return an object) but it does not do any auto-magic (like logging the console, tensorboard etc.)

  
  
Posted 3 years ago

it worked! thanks Martin. But I still don't understand why using Task.create failed. It wouldn't create a new experiment even if I did not close anything

  
  
Posted 3 years ago

BTW: what's the use case? Why do you need to open two Tasks in the same code/script ?

  
  
Posted 3 years ago

it's a fine tuning experiment which was more convenient to do in one script

  
  
Posted 3 years ago

ok i'll try that

  
  
Posted 3 years ago

HappyLion37 did you check the https://github.com/allegroai/trains/tree/master/examples/services/hyper-parameter-optimization ?
You can very quickly get it distributed as well

  
  
Posted 3 years ago

Hi HappyLion37
It seems that you are "reusing" the Tasks. Which means the second time you open them you are essentially resetting the old run and starting all over.
Try to do:
task1 = Task.init('examples', 'step one', reuse_last_task_id=False) print('do stuff') task1.close() task2 = Task.init('examples', 'step two', reuse_last_task_id=False) print('do some more stuff') task2.close()

  
  
Posted 3 years ago
450 Views
7 Answers
3 years ago
one year ago
Tags