summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-07-09 15:56:53 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-07-09 15:56:53 +0200
commit0accf3621ccdd0fb6910222dd4e0cb14dea10403 (patch)
tree9ac87a743f2ae49ea464e219df0390d4258a86d6
parent016210b6c64881a683b45a91af213a1d1a1128ab (diff)
recursive descent with... interesting results
-rw-r--r--lib/model.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/model.py b/lib/model.py
index 68286c9..0550575 100644
--- a/lib/model.py
+++ b/lib/model.py
@@ -665,6 +665,7 @@ class AnalyticModel:
def grep_aggregate_by_state_and_param(aggregate, name, param_index, param_value):
new_aggregate = dict()
new_aggregate[name] = {
+ "isa": aggregate[name]["isa"],
"attributes": aggregate[name]["attributes"],
}
@@ -749,6 +750,12 @@ class DecisionTreeModel:
candidates.append(
(state, attribute, param_index, param_name, param_values)
)
+ # logger.debug('>>> recursive descent for {}/{} with {} = {}'.format(state, attribute, param_name, param_values[0]))
+ # __class__(by_name_sub1, self.parameters)
+ # logger.debug('<<< recursive descent for {}/{} with {} = {}'.format(state, attribute, param_name, param_values[0]))
+ # logger.debug('>>> recursive descent for {}/{} with {} = {}'.format(state, attribute, param_name, param_values[1]))
+ # __class__(by_name_sub2, self.parameters)
+ # logger.debug('<<< recursive descent for {}/{} with {} = {}'.format(state, attribute, param_name, param_values[1]))
candidates_by_state_attribute = dict()
for state, attribute, param_index, param_name, param_values in candidates:
@@ -758,8 +765,6 @@ class DecisionTreeModel:
(param_index, param_name, param_values)
)
- print(candidates_by_state_attribute)
-
def states(self):
"""Return sorted list of state names."""
return sorted(