예제 #1
0
def cdf_score(x):
    idx, cp = cdf(x)
    pos = np.array([find_pos(xi, idx) for xi in x])
    return cp[pos] * 1. / len(x)
예제 #2
0
def cdf_score(x):
    idx, cp = cdf(x)
    pos = np.array([find_pos(xi, idx) for xi in x])
    return cp[pos] * 1. / len(x)
예제 #3
0
 def fit(self, X):
     '''X is array-like
     '''
     self.cdf_values, self.cdf_scores = cdf(X, norm_flag=True)
     self.minval_ = X.min()
     self.maxval_ = X.max()
예제 #4
0
 def fit(self, X):
     '''X is array-like
     '''
     self.cdf_values, self.cdf_scores = cdf(X, norm_flag=True)
     self.minval_ = X.min()
     self.maxval_ = X.max()