summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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.