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
When I Create Clearml-Dataset From The Cli, I Get An Id. The Same Doesn'T Happen When I Use The Python Api. Is There Any Way To Get The Id In Python?

When i create clearml-dataset from the cli, I get an id. The same doesn't happen when I use the Python API. is there any way to get the ID in python?

  
  
Posted 3 years ago
Votes Newest

Answers 7


My use case is basically if I want to now access this dataset from somewhere else, shouldn't I be able to do so using its id?

  
  
Posted 3 years ago

Hi VexedCat68 ,

How do you create it? with Dataset.create ?

  
  
Posted 3 years ago

Yeah

  
  
Posted 3 years ago

dataset = Dataset.create(data_name, project_name)
            print('Dataset Created, Adding Files...')
            dataset.add_files(data_dir)
            print('Files added succesfully, Uploading Files...')
            dataset.upload(output_url=upload_dir, show_progress

  
  
Posted 3 years ago

This works, thanks. Do you have any link to where I can also see the parameters of the Dataset class or was it just on git?

  
  
Posted 3 years ago

not the parameters, but maybe this can help - https://clear.ml/docs/latest/docs/clearml_data

  
  
Posted 3 years ago

try:

dataset = Dataset.create(data_name, project_name) dataset_id = dataset.id

  
  
Posted 3 years ago