Skip to content

Commit c873daa

Browse files
import numpy
1 parent 289598f commit c873daa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benj/incrementalpca.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class _RawNormalizeLogScaler:
22
def __init__(self, mean, std, target_sum:int=None, eps=1e-50, pre_normalized:bool=False):
3+
import numpy as np
34
self.mean = np.ravel(mean).reshape(1, -1)
45
self.inv_std = np.ravel(1. / std).reshape(1, -1).clip(eps, np.inf)
56
self.target_sum = target_sum

0 commit comments

Comments
 (0)