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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pca_tools
3
- Version: 0.2
3
+ Version: 0.2.2
4
4
  Summary: PCA tools for data analysis
5
5
  Home-page: https://github.com/Fidaeic/pca_tools
6
6
  Author: Fidae El Morer
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pca_tools
3
- Version: 0.2
3
+ Version: 0.2.2
4
4
  Summary: PCA tools for data analysis
5
5
  Home-page: https://github.com/Fidaeic/pca_tools
6
6
  Author: Fidae El Morer
@@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
5
5
 
6
6
  setup(
7
7
  name='pca_tools',
8
- version='0.2',
8
+ version='0.2.2',
9
9
  description='PCA tools for data analysis',
10
10
  long_description=long_description,
11
11
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes