We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 289598f commit c873daaCopy full SHA for c873daa
benj/incrementalpca.py
@@ -1,5 +1,6 @@
1
class _RawNormalizeLogScaler:
2
def __init__(self, mean, std, target_sum:int=None, eps=1e-50, pre_normalized:bool=False):
3
+ import numpy as np
4
self.mean = np.ravel(mean).reshape(1, -1)
5
self.inv_std = np.ravel(1. / std).reshape(1, -1).clip(eps, np.inf)
6
self.target_sum = target_sum
0 commit comments