Class for linear regression.
|
|
| LinearRegression (int dimFeatures) |
| |
| void | train (float **data, const float *labels, size_t nData) override |
| |
| float | predict (const float *data) const override |
| |
|
template<typename T> |
| void | train (const std::vector< T > &x, const std::vector< T > &y) |
| | Convenience method for line fitting on 2D dataset.
|
| |
|
template<typename T> |
| float | computeResiduals (const std::vector< T > &x, const std::vector< T > &y) |
| |
|
void | train (const std::vector< std::vector< float > > &data, const std::vector< float > &labels) |
| |
|
float | predict (const std::vector< float > &data) const |
| |
| virtual float | computeResiduals (float **data, const float *labels, size_t nData) const |
| |
|
| Regression (int dimFeatures) |
| |
|
void | train (const std::vector< std::vector< float > > &data, const std::vector< float > &labels) |
| |
|
float | predict (const std::vector< float > &data) const |
| |
| void | configure (const Properties *p) override |
| | Configure this object instance by de-serializing the given Properties.
|
| |
| void | configuration (Properties *p) const override |
| | Serialize the current object configuration into the given Properties object.
|
| |
|
const float * | weights () const |
| |
| virtual void | configureDefaults () |
| | Retrieve the properties of this object, replaces values with their defaults and sets it again.
|
| |
|
void | registerParameter (ParameterBase *param) |
| | Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
|
| |
|
void | unregisterParameter (const ParameterBase *param) |
| | Remove the given Parameter or SubProperty from the list of registered parameters.
|
| |
|
| Configurable (const Configurable &rhs) |
| |
|
| Configurable (Configurable &&rhs) noexcept |
| |
|
Configurable & | operator= (const Configurable &) |
| |
|
Configurable & | operator= (Configurable &&) noexcept |
| |