Skip to content

Commit

Permalink
refactor(apps): comment out "create_benchmark()" in "Sextant" class
Browse files Browse the repository at this point in the history
PR Closed: #1153
  • Loading branch information
zhen.chen authored and linjiX committed Dec 15, 2021
1 parent 7db0527 commit 66c5ab8
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions tensorbay/apps/sextant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 66c5ab8

Please sign in to comment.