summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-01-31 14:04:53 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2022-01-31 14:04:53 +0100
commitc2a5c5675bce5a357f4b7f7b5020dedc7fc33caf (patch)
treead7a90dd86840183edb775b232cbf369cde421c6 /lib
parent766e9c5a44eb765c76aa293e10168808d8799a0c (diff)
ParamStats: Remove unused can_be_fitted function
Has been superseded by ModelAttribute.all_relevant_parameters_are_none_or_numeric
Diffstat (limited to 'lib')
-rw-r--r--lib/parameters.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/parameters.py b/lib/parameters.py
index 70e0fd3..a619103 100644
--- a/lib/parameters.py
+++ b/lib/parameters.py
@@ -455,36 +455,6 @@ class ParamStats:
attr.by_param = res.pop("by_param")
attr.stats = cls(res)
- def can_be_fitted(self) -> bool:
- """
- Return whether a sufficient amount of distinct numeric parameter values is available, allowing a parameter-aware model to be generated.
- """
- for param in self._parameter_names:
- if (
- len(
- list(
- filter(
- lambda n: is_numeric(n),
- self.distinct_values_by_param_name[param],
- )
- )
- )
- > 2
- ):
- logger.debug(
- "can be fitted for param {} on {}".format(
- param,
- list(
- filter(
- lambda n: is_numeric(n),
- self.distinct_values_by_param_name[param],
- )
- ),
- )
- )
- return True
- return False
-
def _generic_param_independence_ratio(self):
"""
Return the heuristic ratio of parameter independence.