Interface IRegressor
Interface for online/incremental regression models. Maps input vectors to output vectors.
Namespace: MOSAIC.Components.MachineLearning.Interfaces
Assembly: MOSAIC.dll
Syntax
public interface IRegressor : ISupervisedLearner, IOnlineLearner
Properties
OutputDimension
Dimensionality of output vectors.
Declaration
int OutputDimension { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Confidence(Vector<double>)
Evaluates prediction confidence for a given input. Higher values typically indicate more certain predictions.
Declaration
double Confidence(Vector<double> x)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector<double> | x | Input vector. |
Returns
| Type | Description |
|---|---|
| double | Confidence score. |
Predict(Vector<double>)
Predicts output for a given input.
Declaration
Vector<double> Predict(Vector<double> x)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector<double> | x | Input vector. |
Returns
| Type | Description |
|---|---|
| Vector<double> | Predicted output vector. |
Update(Vector<double>, Vector<double>)
Updates the model with a single training sample.
Declaration
void Update(Vector<double> x, Vector<double> y)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector<double> | x | Input vector (features). |
| Vector<double> | y | Target output vector. |