Principal Component Analysis.Get Predictions Method
Returns the predicted values of the variables based on the specified number of components.
Definition
Namespace: Extreme.Statistics.Multivariate
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A matrix that contains the predicted variables in its columns.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Matrix<double> GetPredictions(
int numberOfComponents
)
Parameters
- numberOfComponents Int32
- The number of components to include in the prediction.
Return Value
Matrix<Double>A matrix that contains the predicted variables in its columns.
Exceptions
ArgumentOutOfRangeException | numberOfComponents is less than zero or greater than the total number of components. |
InvalidOperationException | The model has not been fitted. Call the Fit() method first. |