diff --git a/fluents/lib/blmfuncs.py b/fluents/lib/blmfuncs.py index f9afe52..588ed35 100644 --- a/fluents/lib/blmfuncs.py +++ b/fluents/lib/blmfuncs.py @@ -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