summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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(