IDAX.PROJECT_PCA - Apply a PCA model
Use this stored procedure to project the input data along the principal components of the PCA model.
Authorization
The privileges held by the authorization ID of the statement must include the IDAX_USER role. Additionally, you must be the owner of the model or have the authority to alter it.
Before you start, ensure that you meet the following requirements:
- The input table must not be empty.
- The order of columns in the input table is unimportant. The column names in the input table, however, must match the column names of the table on which the PCA model is built.
Syntax
IDAX.PROJECT_PCA(in parameter_string varchar(32672))
Parameter descriptions
- parameter_string
- Mandatory one-string parameter that contains pairs of <parameter>=<value> entries that are separated by a comma.
Returned information
A result set that contains the string 't' (for 'true'), if the projection by using the PCA model was successful.
The output table that is created by the projection procedure has the following format:
Column | Data type | Description |
---|---|---|
ID | BIGINT | The ID column of the input table |
PC<X> | DOUBLE | The projected value for the principal component <X>, where X is 1 <= n |
Example
CALL IDAX.PROJECT_PCA('model=customer_churn_pca, intable=customer_churn_project_in, outtable=customer_churn_project_out');