cleverly.bases.UserBasis#
- class cleverly.bases.UserBasis(function: Callable[[Any], Any], terms: tuple[str, ...], columns: tuple[str, ...], basis_kind: Literal['known', 'estimated'] | None = None)[source]#
A basis written as a function of the modifier rows, with its declaration.
function(frame)returns the(n, p)design. A callable can close over any estimate and no code can inspect a closure, so whether it is a known function is a declaration:basis_kind="known"states that the function was fixed without reading this study’s rows.Noneand"estimated"are refused when a model is declared.
Methods#
Attributes#
- UserBasis.max_size#
1: a written basis has one size.
- UserBasis.n_terms#
The number of design columns.