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
Hey I'M Struggling With Some Typing Issue When It Comes To The Pipelines. Following The Documentation I Created My Pipeline From Functions, Added Params And Bind Them To A Single Step Of My Pipeline.

Hey
I'm struggling with some typing issue when it comes to the pipelines. Following the documentation I created my pipeline from functions, added params and bind them to a single step of my pipeline.
from clearml import PipelineController
def generate_data(epoch: int):
for i in range(epoch):
print(i)

if __name__ == "__main__":
pipe = PipelineController(name="xyz", project="examples")
pipe.add_parameter("epoch", default=10, param_type=int)
pipe.add_function_step(name="step_one",function=generate_data,function_kwargs={"epoch": '${pipeline.epoch}'})
pipe.start_locally(run_pipeline_steps_locally=True)
The "epoch" data is passed correctly however it's a string instead of int which gives me errors later in the function itself. I suppose it's because this '${pipeline.epoch}' substitutes value as a string, however I cannot figure out how to force ClearML to bind this parameter with its initial type.
What's even more interesting, in the Web UI this param is correctly recognised as an int.
Do you have any ideas how to solve it?

  
  
Posted one year ago
Votes Newest

Answers 3


Hi @<1570220844972511232:profile|ObnoxiousBluewhale25> , what error are you getting?

  
  
Posted one year ago

@<1523701070390366208:profile|CostlyOstrich36> the epoch variable inside generate_data function is always a string i.e. "10" not 10, the same if I try to pass the list as an argument "[1,2,3]" instead of [1,2,3]

  
  
Posted one year ago

Also, I would suggest trying pipelines from decorators, I think it would be much smoother for you

  
  
Posted one year ago
681 Views
3 Answers
one year ago
one year ago
Tags