From 66c5ab844cfb2501b330c74294d0abf4392041e9 Mon Sep 17 00:00:00 2001 From: "zhen.chen" Date: Tue, 7 Dec 2021 19:37:15 +0800 Subject: [PATCH] refactor(apps): comment out "create_benchmark()" in "Sextant" class PR Closed: https://github.com/Graviti-AI/tensorbay-python-sdk/pull/1153 --- tensorbay/apps/sextant.py | 47 ++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/tensorbay/apps/sextant.py b/tensorbay/apps/sextant.py index d65f7e52b..bdbf14370 100644 --- a/tensorbay/apps/sextant.py +++ b/tensorbay/apps/sextant.py @@ -160,30 +160,31 @@ def _generate_benmarks( return response["totalCount"] # type: ignore[no-any-return] - def create_benchmark( - self, - name: str, - dataset_id: str, - commit_id: str, - *, - categories: Optional[List[str]] = None, - iou_threshold: Optional[float] = None, - customized_metrics: Optional[str] = None, - ) -> Benchmark: - """Create a benchmark with the given parameters. + # def create_benchmark( + # self, + # name: str, + # dataset_id: str, + # commit_id: str, + # *, + # categories: Optional[List[str]] = None, + # iou_threshold: Optional[float] = None, + # customized_metrics: Optional[str] = None, + # ) -> Benchmark: + # """Create a benchmark with the given parameters. + + # Arguments: + # name: Name of the Benchmark. + # dataset_id: ID of the dataset on which this benchmark based. + # commit_id: ID of the commit which used as the evaluation benchmark. + # categories: The needed evaluation categories, if not given, + # all categories will be used. + # iou_threshold: The IoU threshold. + # customized_metrics: Https url of the github repository. + + # Raises: + # ValueError: When iou_threshold and customized_metrics both given or both not given. - Arguments: - name: Name of the Benchmark. - dataset_id: ID of the dataset on which this benchmark based. - commit_id: ID of the commit which used as the evaluation benchmark. - categories: The needed evaluation categories, if not given, all categories will be used. - iou_threshold: The IoU threshold. - customized_metrics: Https url of the github repository. - - Raises:# flake8: noqa: F402 - ValueError: When iou_threshold and customized_metrics both given or both not given. - - """ + # """ def list_benchmarks(self) -> PagingList[Benchmark]: """List all benchmarks.