cellrank.ul.models.SKLearnModel.fit

SKLearnModel.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, use x.

  • y (Optional[ndarray]) – Dependent variables, array of shape (n_samples, 1). If None, use y.

  • w (Optional[ndarray]) – Optional weights of x, array of shape (n_samples,). If None, use w.

  • **kwargs – Keyword arguments for underlying model’s fitting function.

Returns

Fits the model and returns self.

Return type

cellrank.ul.models.SKLearnModel