Skip to content

Commit

Permalink
22851: Adds min residuals to react agg residuals (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackx111 authored Feb 14, 2025
1 parent d060f45 commit c650402
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions howso/react_aggregate.amlg
Original file line number Diff line number Diff line change
Expand Up @@ -481,23 +481,26 @@
output
(assoc
"feature_residuals_robust"
(get
(call !CalculateFeatureResiduals (assoc
features action_features
context_features context_features
case_ids robust_residual_case_ids
robust_residuals (true)
hyperparameter_feature prediction_stats_action_feature
use_case_weights use_case_weights
weight_feature weight_feature
custom_hyperparam_map custom_hyperparam_map
compute_all_statistics (false)
confusion_matrix_min_count confusion_matrix_min_count
context_condition_filter_query context_condition_filter_query
strict_case_ids (!= 0 (size action_condition_filter_query))
use_derivation_logic use_derivation_logic
))
"residual_map"
(map
(lambda (max (current_value) (get !cachedFeatureMinResidualMap (current_index))))
(get
(call !CalculateFeatureResiduals (assoc
features action_features
context_features context_features
case_ids robust_residual_case_ids
robust_residuals (true)
hyperparameter_feature prediction_stats_action_feature
use_case_weights use_case_weights
weight_feature weight_feature
custom_hyperparam_map custom_hyperparam_map
compute_all_statistics (false)
confusion_matrix_min_count confusion_matrix_min_count
context_condition_filter_query context_condition_filter_query
strict_case_ids (!= 0 (size action_condition_filter_query))
use_derivation_logic use_derivation_logic
))
"residual_map"
)
)
)
))
Expand Down

0 comments on commit c650402

Please sign in to comment.