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
6 changes: 5 additions & 1 deletion module/conviction.amlg
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,11 @@
)

(declare (assoc
feature_weights (get hyperparam_map "featureWeights")
feature_weights
(if (size (get hyperparam_map "featureMdaMap"))
(get hyperparam_map "featureMdaMap")
(get hyperparam_map "featureWeights")
)
feature_deviations (get hyperparam_map "featureDeviations")
))

Expand Down
3 changes: 1 addition & 2 deletions module/details.amlg
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@

feature_deviations (get hyperparam_map "featureDeviations")
feature_weights
;only use featureMdaMap weights if there are action_features provided
(if (and (size (get hyperparam_map "featureMdaMap")) (size action_features))
(if (size (get hyperparam_map "featureMdaMap"))
(get hyperparam_map "featureMdaMap")
(get hyperparam_map "featureWeights")
)
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/ut_h_rebalance_features.amlg
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
;geomean
0
;weights of cases (order isn't relevant since distance/surprisal to each is same)
[1 2]
(normalize [1 2])
)
))

Expand Down
Loading