edit#

superglm.editor.edit(
model,
terms: list[str] | tuple[str, ...] | None = None,
*,
n_points: int = 200,
centering: str = 'native',
with_se: bool = True,
train_data=None,
validation_data=None,
test_data=None,
cv: CrossValidationResult | None = None,
cv_data=None,
amount_unit: str | None = None,
) → EditorSession#

Create an editor session for a fitted model.

The split data are (X, y[, sample_weight[, offset]]) tuples. cv is a superglm.cross_validate() result for the Cross-validation tab and cv_data the rows its folds index; see EditorSession.from_model(), which also describes opening a SuperLSS model (amount_unit).