windkit.ltc.regression.LinearRegression.fit

LinearRegression.fit(x, y)[source]

Fit model. Note that the input of this function is not validated, the validation is made in the MPCRegressor class. :param X: Training data :type X: array-like, shape (n_samples, 1) :param y: Target values. Will be cast to X’s dtype if necessary :type y: array_like, shape (n_samples)

Returns:

self

Return type:

returns an instance of self.