Esempio n. 1
0
 def __init__(self, C, gamma, n_components=100, random_state=None):
     NystroemSet.__init__(self,
                          gamma=gamma,
                          n_components=n_components,
                          random_state=random_state)
     OneClassSVM.__init__(self, nu=C, gamma=gamma, kernel='linear')
Esempio n. 2
0
 def __init__(self, sigma=1.0, nu=0.4):
     gamma = 1. / (2. * sigma**2)
     OneClassSVM.__init__(self, gamma=gamma, nu=nu)