Skip to content

Commit

Permalink
store mean abs epsilon in quant datapoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Cajac102 committed Jan 20, 2025
1 parent 671a7b9 commit e415921
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proteobench/datapoint/quant_datapoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class Datapoint:
intermediate_hash: str = ""
results: dict = None
median_abs_epsilon: int = 0
mean_abs_epsilon: int = 0
nr_prec: int = 0
comments: str = ""
proteobench_version: str = ""
Expand Down Expand Up @@ -169,6 +170,7 @@ def generate_datapoint(
results = dict(ChainMap(*[Datapoint.get_metrics(intermediate, nr_observed) for nr_observed in range(1, 7)]))
result_datapoint.results = results
result_datapoint.median_abs_epsilon = result_datapoint.results[default_cutoff_min_prec]["median_abs_epsilon"]
result_datapoint.mean_abs_epsilon = result_datapoint.results[default_cutoff_min_prec]["mean_abs_epsilon"]

results_series = pd.Series(dataclasses.asdict(result_datapoint))

Expand Down

0 comments on commit e415921

Please sign in to comment.