Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions howso/analysis_weights.amlg
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,8 @@
)
)

;else normal continuous feature, compute max gap
(compute_on_contained_entities
(query_max_difference (current_index 1) (get !cyclicFeaturesMap (current_index 1)) )
)
;else normal continuous feature, pull cached max gap
(get !cachedFeatureMaxGapMap (current_index 1))
)
min_gap
(if (contains_index !editDistanceFeatureTypesMap (current_index 1))
Expand All @@ -371,8 +369,9 @@
(query_min_difference (current_index 1) (get !cyclicFeaturesMap (current_index 1)) )
)
)
num_buckets (size (remove (compute_on_contained_entities (query_value_masses (current_index 1) )) [(null)]))
num_values (size (compute_on_contained_entities (query_not_equals (current_index 1) (null))))
;pull from cached marginal stats
num_buckets (get !featureMarginalStatsMap [weight_feature (current_index 2) "uniques"])
num_values (get !featureMarginalStatsMap [weight_feature (current_index 2) "count"])
)

;infinity means there was no gap, and nan means all values are null and can't compute gap
Expand Down
Loading