whitespace
This commit is contained in:
parent
818dc0b2b0
commit
22f6e3284c
|
@ -21,8 +21,8 @@ import blmplots
|
|||
class Model(Function):
|
||||
"""Base class of bilinear models.
|
||||
"""
|
||||
def __init__(self,id='johndoe',name='JohnDoe'):
|
||||
Function.__init__(self,id,name)
|
||||
def __init__(self, id='johndoe', name='JohnDoe'):
|
||||
Function.__init__(self, id, name)
|
||||
self.name = name
|
||||
self._options = None
|
||||
self._data = {}
|
||||
|
@ -39,8 +39,8 @@ class Model(Function):
|
|||
|
||||
|
||||
class PCA(Model):
|
||||
def __init__(self,id='pca',name='PCA'):
|
||||
Model.__init__(self,id,name)
|
||||
def __init__(self, id='pca', name='PCA'):
|
||||
Model.__init__(self, id, name)
|
||||
self._options = PcaOptions()
|
||||
|
||||
def validation(self, amax, cv_val_sets, pert_val_sets, cv_val_method, pert_val_method):
|
||||
|
@ -63,6 +63,7 @@ class PCA(Model):
|
|||
if self._options['auto_aopt']:
|
||||
logger.log("notice", "Auto aopt: " + str(aopt))
|
||||
self._options['aopt'] = aopt
|
||||
|
||||
if aopt==1:
|
||||
logger.log('notice', 'Aopt at first component!')
|
||||
|
||||
|
@ -70,6 +71,8 @@ class PCA(Model):
|
|||
crot, strict, cov_center ):
|
||||
"""Returns a confidence measure for model parameters.
|
||||
Based on aopt.
|
||||
|
||||
Added model parts: p_tsq
|
||||
"""
|
||||
if aopt<2:
|
||||
aopt = 2
|
||||
|
|
Reference in New Issue