kliff.models.linear_regression

class kliff.models.linear_regression.LinearRegression(*args: Any, **kwargs: Any)[source]

Linear regression model.

forward(x)[source]
Parameters:

x (Tensor) – Descriptors of shape (N, M), where N is the number of descriptors and M is the descriptor size.

fit(path)[source]

Fit the model using analytic solution.

exception kliff.models.linear_regression.LinearRegressionError(msg)[source]