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


Hello 🙂
This is the snipper using Click

@define()
class ClearMLConfig:
    task_name: str = "First experiment"
    task_type: Task.TaskTypes = Task.TaskTypes.training
    reuse_last_task_id: bool = True
    output_uri: Optional[str] = None


clearml_config = ClearMLConfig()
task = Task.init(project_name='Illuin Emotions',
                 task_name=clearml_config.task_name,
                 reuse_last_task_id=clearml_config.reuse_last_task_id,
                 task_type=clearml_config.task_type,
                 output_uri=clearml_config.output_uri)


@click.group()
def cli() -> None:
    if os.path.isfile(".env"):
        logger.info("Loading .env file")
        load_dotenv(".env")


cli.add_command(lightning_cli, name="lightning")
cli.add_command(huggingface_cli, name="huggingface")

And to log it we use:
Task.current_task().connect(attrs.asdict(config))

  
  
Posted one year ago
145 Views
0 Answers
one year ago
one year ago