Clear and transparent implementation of linear regression
The project was implemented as a modular framework for linear regression. It provides basic tools (such as regularization or standardization) in the form of flexible abstractions, thanks to which it is very easy to combine individual modules and extend the existing ones. The implementation does not use any external libraries, it is a pure Python (version 3.6) code.
Three classical variants of normalization are provided:
(x - min) / (max - min)
(x - mean) / (max - min)
(x - mean) / stdev
By default two sets of basis functions are available:
Two common loss funcions are provided:
Initial hypothesis is generated from the normal distribution with mean 0 and standard deviation being one of the hyperarameters.
The algorithm checks three conditions on an ongoing basis (provided before the training process):
One of the hyperparameters.