pca-tools 0.2__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pca_tools-0.2 → pca_tools-0.2.2}/PKG-INFO +1 -1
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools/model.py +7 -1
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools.egg-info/PKG-INFO +1 -1
- {pca_tools-0.2 → pca_tools-0.2.2}/setup.py +1 -1
- {pca_tools-0.2 → pca_tools-0.2.2}/LICENSE +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/README.md +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools/__init__.py +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools/exceptions.py +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools/utils.py +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools.egg-info/SOURCES.txt +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools.egg-info/dependency_links.txt +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools.egg-info/requires.txt +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/pca_tools.egg-info/top_level.txt +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/setup.cfg +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/tests/test_control.py +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/tests/test_model.py +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/tests/test_preprocess.py +0 -0
- {pca_tools-0.2 → pca_tools-0.2.2}/tests/test_transforms.py +0 -0
|
@@ -479,6 +479,11 @@ class PCA(BaseEstimator, TransformerMixin):
|
|
|
479
479
|
|
|
480
480
|
hotelling, SPE, _, _ = self.project(X_predict)
|
|
481
481
|
|
|
482
|
+
X_transform = X_predict.copy()
|
|
483
|
+
if self._standardize:
|
|
484
|
+
X_transform = self.preprocess(data=X_transform)
|
|
485
|
+
|
|
486
|
+
dict_differences = {col: float(X_transform[col].values[0]) for col in X_transform.columns}
|
|
482
487
|
# Hotelling's T2 control limit. Phase II
|
|
483
488
|
dfn = self._ncomps
|
|
484
489
|
dfd = self._nobs - self._ncomps
|
|
@@ -507,7 +512,8 @@ class PCA(BaseEstimator, TransformerMixin):
|
|
|
507
512
|
'spe_outlier': spe_outlier,
|
|
508
513
|
'hotelling_outlier': hotelling_outlier,
|
|
509
514
|
'spe_ucl': float(self._spe_limit),
|
|
510
|
-
'hotelling_ucl': float(self._hotelling_limit_p2)
|
|
515
|
+
'hotelling_ucl': float(self._hotelling_limit_p2),
|
|
516
|
+
'differences': dict_differences
|
|
511
517
|
}
|
|
512
518
|
return response_json
|
|
513
519
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|