diff --git a/howso/hierarchy.amlg b/howso/hierarchy.amlg index 9a53d4b41..f3f27390f 100644 --- a/howso/hierarchy.amlg +++ b/howso/hierarchy.amlg @@ -887,6 +887,7 @@ ;else it's just the number of cases (call !GetNumTrainingCases) ) + has_inactive_features (size !inactiveFeaturesMap) )) ;clear all query caches @@ -970,6 +971,10 @@ (contained_entities subtrainee (query_exists !internalLabelSession)) ) + (if (size (call_entity subtrainee "debug_label" (assoc label "!inactiveFeaturesMap"))) + (assign (assoc has_inactive_features .true)) + ) + ;move all sessions over from subtrainee to trainee (map (lambda @@ -1007,8 +1012,10 @@ )) (call !UpdateRegionalMinSize (assoc dataset_size (call !GetNumTrainingCases) )) (call !ClearCachedDataProperties) - (if !inactiveFeaturesMap - (assign_to_entities (assoc !inactiveFeaturesNeedCaching .true )) + + ;if this trainee or any of the subtrainees had inactive features, make sure they are recomputed here + (if has_inactive_features + (call !UpdateInactiveFeatures) ) (accum_to_entities (assoc !dataMassChangeSinceLastAnalyze (- new_dataset_size pre_combine_dataset_size) ))