Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #177

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mlonmcu/session/postprocess/validate_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def process_(self, out_data, label_ref, quant: bool = False):
return correct, label

def process(self, out_data, label_ref, quant: bool = False):
print("ConfusionMatrixMetric.process")
# print("ConfusionMatrixMetric.process")
if not self.check(out_data, label_ref, quant=quant):
return
self.num_total += 1
Expand Down Expand Up @@ -244,8 +244,8 @@ def process_(self, out_data, out_data_ref, in_data: Optional[np.array] = None, q
ref_res += ref_res**2
res /= length
ref_res /= length
print("res", res)
print("ref_res", ref_res)
# print("res", res)
# print("ref_res", ref_res)
return np.allclose([res], [ref_res], atol=self.atol, rtol=self.rtol)


Expand All @@ -263,9 +263,9 @@ def process_(self, out_data, out_data_ref, in_data: Optional[np.array] = None, q
length = len(data_)
for jjj in range(length):
diff = abs(data_[jjj] - ref_data_[jjj])
print("diff", diff)
# print("diff", diff)
if diff > 1:
print("r FALSE")
# print("r FALSE")
return False
return True

Expand Down
Loading