lpspline.viz.plot_interactive#
- lpspline.viz.plot_interactive(model: LpRegressor, X: DataFrame, y: Series, xcol: str, show_splines: List[str] | None = None, width: int = 400, height: int = 300)[source]#
Create an interactive Altair plot showing the model fit and component splines.
- Parameters:
model (LpRegressor) – The fitted regression model.
X (pl.DataFrame) – Input features.
y (pl.Series) – Target values.
xcol (str) – The feature name to use for the x-axis in the top plot.
show_splines (List[str], default=None) – A list of spline tags to display in the bottom row. If None, all splines are shown.
width (int, default=400) – The total width of the plot.
height (int, default=300) – The total height of the plot.
- Returns:
The interactive Altair chart.
- Return type:
alt.VConcatChart