-
gammy.plot.
validation_plot
validation_plot¶
-
validation_plot
(model, input_data, y, grid_limits, input_maps, index=None, xlabels=None, titles=None, gridsize=20, color='r', **kwargs)[source]¶ Validation plot for a GAM object
Contains:
Series plot with predicted vs. observed
Partial residual plots
- Parameters
- modelgammy.bayespy.GAM | gammy.numpy.GAM
Visualized model
- input_datanp.ndarray
Input data
- ynp.ndarray
Observations
- grid_limitsList
Grid limits, either [a, b] or [[a_1, b_1], …, [a_N, b_N]]
- input_mapsList[Callable]
List of input maps to be used for each pair of grid limits
- indexnp.ndarray
Optional x-axis for the series plot
- xlabelsList[str]
Optional x-labels for the partial residual plots
- gridsizeint
Number of points in the input dimensions discretizations
- colorstr
Color of scatter points