regressioninc.base module#
Base class for regression in C
The base class implements some basic functions and the abstract classes for regressors.
- regressioninc.base.htranspose(arr: ndarray) ndarray [source]#
Hermitian transpose of an array (transpose and complex conjugation)
- Parameters:
arr (np.ndarray) – Input array
- Returns:
Hermitian transpose
- Return type:
np.ndarray
- regressioninc.base.sum_square_residuals(X: ndarray, y: ndarray, coef: ndarray) float [source]#
Calculate sum of square residuals
- Parameters:
X (np.ndarray) – The regressors
y (np.ndarray) – The observations
coef (np.ndarray) – The estimated coefficients
- Returns:
The sum of square residuals
- Return type:
float