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'Ve Recently Upgraded To 0.15.1 From 0.14.2, And For Some Reason A Code That Previously Worked In Which I'M Getting The Tags Of A Model Using

Hi, I've recently upgraded to 0.15.1 from 0.14.2, and for some reason a code that previously worked in which I'm getting the tags of a model using InputModel(model_id).tags no longer works. I'm getting an empty list of tags although in the server I can see the tags.

  
  
Posted 4 years ago
Votes Newest

Answers 13


AgitatedDove14 You were right. I can get them as system tags.
I've wrote a class that wraps an training session and interaction with trains as upon loading/saving the experiment I need more than just the 'model.bin'
So I use these tags to match a specific aux files that were saved with their model.

  
  
Posted 4 years ago

PompousBeetle71 I think that was you saw as tags in previous version was actually systems tags, now we also have users tags (i.e. .tags). If you still want to access the system tags can you try:
InputModel('aabbcc')._get_base_model().data.system_tags

  
  
Posted 4 years ago

AgitatedDove14 My solution actually works better when I want to copy the model + aux to a different s3 folder for deployment as the aux is very light and I can copy the model without downloading it. But thanks for the suggestion.

  
  
Posted 4 years ago

PompousBeetle71 you can also use ModelOutput.update_weights_package to store multiple files at once (they will all be packaged into a single zip, and unpacked when you get them back via ModelInput). Would that help?

  
  
Posted 4 years ago

TimelyPenguin76 yes, both 0.15.1

  
  
Posted 4 years ago

PompousBeetle71 , Can you try those and tell me if it’s still empty?

` from trains import InputModel

print(InputModel(<Put a string copy from the UI with the tag id>).tags) `I can’t reproduce this issue, and I just want to be sure it’s not a new model

model id can be found like in the pic. after clicking the ID mark

  
  
Posted 4 years ago

PompousBeetle71 notice that starting with this version when you set model tags they will be stored as user tags , which you can change and edit in UI. So if you still need the system tags you have to access them directly.

  
  
Posted 4 years ago

TimelyPenguin76 I see it in the web-app under the model.

  
  
Posted 4 years ago

  • can you share the tag name?
  
  
Posted 4 years ago

Hi PompousBeetle71 ,

Can you please share with me some more information? Where can you see the tags in the server? Do you mean in the web-app? Do you see the tags under the task or the model?

  
  
Posted 4 years ago

BTW: how are you using them? should we have a direct interface to those ?

  
  
Posted 4 years ago

Hi PompousBeetle71 , did you upgrade only trains or trains-server as well?

  
  
Posted 4 years ago

TimelyPenguin76 the tags names are 'Epoch 1', 'Step 5705'
the return value of the InputModel(<Put a string copy from the UI with the tag id>).tags is an empty array.

  
  
Posted 4 years ago
1K Views
13 Answers
4 years ago
one year ago
Tags