diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-02-01 07:26:23 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-02-01 07:26:23 +0100 |
commit | dacd6b2b62e346084a84b7d4f73abbd6cf62f262 (patch) | |
tree | c468fd853ab052073690d27948b3f6fec0baace1 | |
parent | 6aeb32ff47079e5a9b969b7c7631af12956ca46c (diff) |
dref export: static and analytic function ≙ single-node tree
-rw-r--r-- | lib/parameters.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/parameters.py b/lib/parameters.py index faa2e96..8e17f2b 100644 --- a/lib/parameters.py +++ b/lib/parameters.py @@ -644,6 +644,9 @@ class ModelAttribute: ): ret["decision tree/nodes"] = self.model_function.get_number_of_nodes() ret["decision tree/max depth"] = self.model_function.get_max_depth() + elif type(self.model_function) in (df.StaticFunction, df.AnalyticFunction): + ret["decision tree/nodes"] = 1 + ret["decision tree/max depth"] = 1 return ret |