Closed hovinh closed 3 years ago
Yes great! I did make some minor changes to simplify the usage. The "param_dict" is named "outliers_params" and is stored in the object itself. This means that you do not need to specify this anymore for outlier detection.
# Training
model = pca(n_components=5, alpha=0.5, n_std=3, normalize=True, random_state=42)
results = model.fit_transform(X=X_train[features])
# Inference: mapping of data into space.
PC_test = model.transform(X=X_test[features])
# Compute new outliers
scores, _ = model.compute_outliers(PC=PC_test, n_std=3, verbose=3)
This PR is related to the Issue #15. Problem statement: To employ pca package as a monitoring method, in form of a quality control chart.
Changes I have made:
Code to test out the new change: