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
Hpo With Optuna Via Webapp (Pro Version) Is Not Working As Expected. I Generated A Dummy Task That Logs A Random Value Into Some Metric And Closes, The Code:


Hi, sure, there is nothing special there, even some redundancy.

def initialize_clearml_task(
        project_name: str = None,
        task_name: str = None,
        task_type: str = None,
        tags: list[str] = None,
) -> tuple[Task, Logger]:
    """
    Initialize and configure a ClearML task.

    Parameters
    ----------
    project_name : str
        Name of the ClearML project.
    task_name : str
        Name of the ClearML task.
    task_type : str
        Type of the ClearML task.
    tags : list[str]
        List of tags to be assigned to the task.

    Returns
    -------
    tuple[Task, Logger]
        A tuple containing the ClearML task, and the logger.
    """
    task = Task.current_task()
    if task is None:
        task = CADLUtils.init_clearml_task(
            project_name=project_name,
            task_name=task_name,
            task_type=task_type,
            tags=tags
        )
    logger = task.get_logger()

    return task, logger

class CADLUtils:
    @staticmethod
    def init_clearml_task(project_name: str, task_name: str, task_type: str, tags: list[str] | None = None) -> Task:
        """
        Initializes a ClearML task for the current project.

        Parameters:
        -----------
        project_name : str
            The name of the project. for nested projects, use the format 'parent_project/child_project'.
        task_name : str
            The name of the task.
        task_type : str
            The type of the task. choose from clearml.Task.TaskTypes.

        Returns:
        --------
        Task
            The initialized ClearML task.

        Example:
        --------
        task = CADLUtils.init_clearml_task(project_name='my_project', task_name='my_task', task_type='training')
        """
        task = Task.init(
            project_name=project_name,
            task_name=task_name,
            task_type=task_type,
            tags=tags,
            auto_connect_frameworks={"pytorch": False},
            reuse_last_task_id=False,
            # output_uri="
",
        )
        return task

will try with the newest version as well

  
  
Posted 4 months ago
87 Views
0 Answers
4 months ago
4 months ago