`num_knots`

argument for each degree of
interactions and the smoothness orders.`R/hal.R`

`num_knots_generator.Rd`

A 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
)
```

- smoothness_orders
see

`fit_hal`

.- base_num_knots_0
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.- base_num_knots_1
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.- d
interaction degree.