Skip to content

Commit

Permalink
fix : minor edit in __compare_assign_handler__ function #347
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Oct 10, 2021
1 parent fc3858b commit 95d6939
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pycm/pycm_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,18 +222,22 @@ def __compare_sort_handler__(compare):
return (max_overall_name, max_class_name)


def __compare_assign_handler__(compare, cm_dict, class_weight, digit):
def __compare_assign_handler__(compare, cm_dict, class_weight, class_benchmark_weight, overall_benchmark_weight, digit):
"""
Assign basic parameters to Comapre.
Assign basic parameters to Compare.
:param compare: Compare
:type compare : pycm.Compare object
:param cm_dict: cm's dictionary
:type cm_dict : dict
:param digit: precision digit (default value : 5)
:type digit : int
:param class_weight: class weights
:type class_weight: dict
:param class_benchmark_weight: class benchmark weights
:type class_benchmark_weight: dict
:param overall_benchmark_weight: overall benchmark weights
:type overall_benchmark_weight: dict
:param digit: precision digit (default value : 5)
:type digit : int
:return: None
"""
if not isinstance(cm_dict, dict):
Expand Down

0 comments on commit 95d6939

Please sign in to comment.