liana.method.sp.RobustLinearModel#

class liana.method.sp.RobustLinearModel(seed, **kwargs)#

Robust linear regression model using statsmodels.RLM. Inherits from SingleViewModel

Methods table#

fit(y, X, predictors[, k_cv])

Fits a robust linear model.

getdoc()

Methods#

RobustLinearModel.fit(y, X, predictors, k_cv=None)#

Fits a robust linear model.

Parameters:
  • y (ndarray) – Target variable

  • X (ndarray) – Feature matrix

  • predictors (list[str]) – List of feature names

  • k_cv (int (default: None)) – Number of cross-validation folds. If None, no cross-validation is performed.

RobustLinearModel.getdoc() str | None#