LinMixin.model_spec#
- property LinMixin.model_spec: ModelSpec#
The model spec used internally by
formulaicto set up the basis matrix.Examples
>>> import pandas as pd >>> import liesel_gam as gam >>> df = pd.DataFrame({"x": [0.0, 1.0], "z": [1.0, 2.0]}) >>> term = gam.TermBuilder.from_df(df).lin("x + z") >>> str(term.model_spec.formula) '1 + x + z'