cellrank.ul.models.GAM.fit¶
-
GAM.
fit
(x=None, y=None, w=None, **kwargs)[source]¶ Fit the model.
- Parameters
x¶ (
Optional
[ndarray
]) – Independent variables, array of shape (n_samples, 1). If None, usex
.y¶ (
Optional
[ndarray
]) – Dependent variables, array of shape (n_samples, 1). If None, usey
.w¶ (
Optional
[ndarray
]) – Optional weights ofx
, array of shape (n_samples,). If None, usew
.kwargs¶ – Keyword arguments for underlying
model
’s fitting function.
- Returns
Fits the model and returns self.
- Return type