diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-02 08:56:31 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-02 08:56:31 +0100 |
commit | 68e4b1d5a090b829eb4ee09635256c3c2fccccc5 (patch) | |
tree | 8128b6be3ad17bd5d2185e38f52fefef06b938a9 /lib/model.py | |
parent | 02e9d4fc13acddb22393e2ebc854b9889a0ac83d (diff) |
Model: do not store distinct_values; they're part of stats anyways
Diffstat (limited to 'lib/model.py')
-rw-r--r-- | lib/model.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/model.py b/lib/model.py index 309e6f5..56bf1f2 100644 --- a/lib/model.py +++ b/lib/model.py @@ -128,14 +128,12 @@ class AnalyticModel: if self._num_args is None: self._num_args = _num_args_from_by_name(by_name) - self.distinct_param_values_by_name = dict() self.param_type_by_name = dict() for name in self.names: - self.distinct_param_values_by_name[name] = distinct_param_values( - by_name[name]["param"] - ) + distinct_values = dict() + distinct_values = distinct_param_values(by_name[name]["param"]) self.param_type_by_name[name] = ParamType( - self.distinct_param_values_by_name[name], values_are_distinct=True + distinct_values, values_are_distinct=True ) self.fit_done = False @@ -716,14 +714,12 @@ class PTAModel(AnalyticModel): self.pta = pta self.ignore_trace_indexes = ignore_trace_indexes - self.distinct_param_values_by_name = dict() self.param_type_by_name = dict() for name in self.names: - self.distinct_param_values_by_name[name] = distinct_param_values( - by_name[name]["param"] - ) + distinct_values = dict() + distinct_values = distinct_param_values(by_name[name]["param"]) self.param_type_by_name[name] = ParamType( - self.distinct_param_values_by_name[name], values_are_distinct=True + distinct_values, values_are_distinct=True ) self.fit_done = False |