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
Unanswered
Hi Guys, In Web Ui, I See Metadata Tab For Models. I'Ve Checked All Documentation And Didn'T Find How Can I Update My Model Metadata From Code Level. Any Suggestions? Manual Work On Web Ui Is Not Interesting For Me


Hi HandsomeGiraffe70
There is a way, this is the API. You can use it this way :
retrieve the task the model belongs to retrieve the model you want (from a lit of input and output models) create the metadata inject them to the model
Here is an example :

` from clearml import Task
from clearml.backend_api import Session
from clearml.backend_api.services import models
from clearml.backend_api.services.v2_13.models import MetadataItem

task = Task.get_task(project_name=project_name, task_name=task_name)
model = task.models['output'][0]

my_metadata = [MetadataItem(
key='this is my unique key 0000',
type='any_type',
value='My brand new Metadata')
]

session = Session()

res = session.send(models.AddOrUpdateMetadataRequest(
model=model.id,
metadata=my_metadata
))

print(res.response_data) `

  
  
Posted 2 years ago
118 Views
0 Answers
2 years ago
one year ago