Initialize Anomaly Detection Model (PCA T2Q) VI
- Updated2023-02-21
- 4 minute(s) read
Initialize Anomaly Detection Model (PCA T2Q) VI
Owning Palette: Anomaly Detection VIs
Requires: Analytics and Machine Learning Toolkit
Initializes the hyperparameters of the principal component analysis (PCA) algorithm.
The T2-statistic measures the variation in each sample and indicates the distance of each sample from the center of the PCA model. The Q-statistic indicates how well each sample conforms to the PCA model by measuring the distance that a data point falls from the PCA model.
The Deploy Anomaly Detection Model VI uses health index to return the T2 value and the Q value.
You can initialize a PCA model for batch training with this VI when you have a large training data set.
One Shot
![]() |
hyperparameters specifies the hyperparameters of the PCA baseline model.
| ||||||||||||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||||
![]() |
untrained PCA baseline model returns the initialized PCA baseline model for training. | ||||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Batch
![]() |
hyperparameters specifies the hyperparameters of the PCA baseline model.
| ||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||
![]() |
untrained PCA baseline model returns the initialized PCA baseline model for training. | ||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following VIs for examples of using the Initialize Anomaly Detection Model (PCA T2Q) VI:
- Anomaly Detection (Training) VI: labview\examples\AML\Anomaly Detection
- Anomaly Detection (Training) (Batch) VI: labview\examples\AML\Anomaly Detection