powered by
Build a piecewise constant fit coder with some parameters bound in.
piecewise_constant_coder( penalty = 1, min_n_to_chunk = 1000, min_seg = 10, max_k = 1000 )
a vtreat coder
per-segment cost penalty.
minimum n to subdivied problem.
positive integer, minimum segment size.
maximum segments to divide into.
coder <- piecewise_constant_coder(min_seg = 1) coder("x", 1:8, c(-1, -1, -1, -1, 1, 1, 1, 1))
Run the code above in your browser using DataLab