Browse Source

Merge pull request #90 from Learnware-LAMDA/mnt_image_score

[FIX] Fix monotonicity
tags/v0.3.2
Gene GitHub 2 years ago
parent
commit
2e9bf05120
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      learnware/market/easy/searcher.py

+ 2
- 2
learnware/market/easy/searcher.py View File

@@ -588,9 +588,9 @@ class EasyStatSearcher(BaseSearcher):

# Special Transform for ImageSpecification
if self.stat_spec_type == "RKMEImageSpecification":
sorted_dist_list = [np.exp(-d / 0.00005) for d in sorted_dist_list]
sorted_dist_list = [1 - np.exp(-d / 0.00005) for d in sorted_dist_list]
if mixture_dist is not None:
mixture_dist = np.exp(-mixture_dist / 0.00005)
mixture_dist = 1 - np.exp(-mixture_dist / 0.00005)

if mixture_dist is None:
sorted_score_list = self._convert_dist_to_score(sorted_dist_list)


Loading…
Cancel
Save