コード例 #1
0
def list_metrics(project_id, experiment_id):
    """Lists all metrics from object storage.

    Args:
        project_id (str): the project uuid.
        experiment_id (str): the experiment uuid.

    Returns:
        A list of metrics.
    """
    try:
        return platiagro.list_metrics(experiment_id=experiment_id)
    except FileNotFoundError as e:
        raise NotFound(str(e))
コード例 #2
0
def list_metrics(experiment_id, operator_id, run_id):
    """Lists all metrics from object storage.
    Args:
        experiment_id (str): the experiment uuid.
        operator_id (str): the operator uuid.
        run_id (str): the run id.
    Returns:
        A list of metrics.
    """
    try:
        return platiagro.list_metrics(experiment_id=experiment_id,
                                      operator_id=operator_id,
                                      run_id=run_id)
    except FileNotFoundError as e:
        raise NotFound(str(e))
コード例 #3
0
    def list_metrics(self, project_id: str, experiment_id: str, run_id: str,
                     operator_id: str):
        """
        Lists all metrics from object storage.

        Parameters
        ----------
        project_id : str
        experiment_id : str
        run_id : str
            The run_id. If `run_id=latest`, then returns metrics from the latest run_id.
        operator_id : str

        Returns
        -------
        list
            A list of metrics.
        """
        try:
            return platiagro.list_metrics(experiment_id=experiment_id,
                                          operator_id=operator_id,
                                          run_id=run_id)
        except FileNotFoundError:
            return []