policytree icon indicating copy to clipboard operation
policytree copied to clipboard

Add penalized policy tree

Open erikcs opened this issue 3 years ago • 0 comments

Add penalized_policy_tree(X, Gamma1, Gamma2, penalty.type = c("sum", "ratio"), lambda = 1, etc...)

Screen Shot 2022-10-25 at 21 52 16

$\Gamma_{2,i}$ = 0 in a) is what policy_tree does, this PR just extends the "reward" calculation to compute a) or b), or the original one (just sum Gamma1). Since PT er very perf sensitive the a), b) or original calculation is resolved at compile-time.

perf.R

todos:

  • timing
  • more tests
  • add penalized timing bench
  • "seealso/readme"

erikcs avatar Oct 22 '22 05:10 erikcs