num_knots argument for each degree of interactions and the smoothness orders.R/hal.R
num_knots_generator.RdA default generator for the num_knots argument for each degree of
interactions and the smoothness orders.
num_knots_generator(
max_degree,
smoothness_orders,
base_num_knots_0 = 500,
base_num_knots_1 = 200
)interaction degree.
see fit_hal.
The base number of knots for zeroth-order smoothness
basis functions. The number of knots by degree interaction decays as
base_num_knots_0/2^(d-1) where d is the interaction degree of the basis
function.
The base number of knots for 1 or greater order
smoothness basis functions. The number of knots by degree interaction
decays as base_num_knots_1/2^(d-1) where d is the interaction degree of
the basis function.