LinBasis

Contents

LinBasis#

class liesel_gam.LinBasis(value, basis_fn=<function Basis.<lambda>>, name=None, xname=None, use_callback=True, cache_basis=True, penalty='identity', **basis_kwargs)[source]#

Bases: Basis

Dedicated basis object for linear effects.

See Basis for general usage information. This class additionally offers

  • model_spec: The model spec used internally by formulaic to set up the basis matrix.

  • mappings: A dictionary of label-integer mappings for all categorical variables in this basis.

  • column_names: List of column names for this basis.

Attributes

column_names

mappings

A dictionary of label-integer mappings for all categorical variables in this basis.

model_spec

The model spec used internally by formulaic to set up the basis matrix.