liana.method.sp.SingleViewModel#
- class liana.method.sp.SingleViewModel(seed, **kwargs)#
Base class for single view models. Subclasses should implement the fit method.
- Parameters:
seed (
int) – Pseudo-random number generator (PRNG) state seed.kwargs – Other arguments used in a specific method. See the specific documentation in the corresponding child class.
- predictions#
Contains the resulting predictions in array form.
- Type:
np.ndarray
Methods table#
Methods#
- SingleViewModel.fit(y, X, predictors, k_cv=None)#
Fit the model to the data and store the predictions and importances.
- Parameters:
- Raises:
NotImplementedError – Base class method, children classes replace it with their own method.