fix minor bug in metric
Browse files- aide/utils/metric.py +1 -1
aide/utils/metric.py
CHANGED
@@ -38,7 +38,7 @@ class MetricValue(DataClassJsonMixin):
|
|
38 |
return comp if self.maximize else not comp # type: ignore
|
39 |
|
40 |
def __eq__(self, other: Any) -> bool:
|
41 |
-
assert type(self) is type(other)
|
42 |
return self.value == other.value
|
43 |
|
44 |
def __repr__(self) -> str:
|
|
|
38 |
return comp if self.maximize else not comp # type: ignore
|
39 |
|
40 |
def __eq__(self, other: Any) -> bool:
|
41 |
+
# assert type(self) is type(other)
|
42 |
return self.value == other.value
|
43 |
|
44 |
def __repr__(self) -> str:
|