From 16ed2fd9c910b2a1d4b5b66e79c7e5e422afcbfa Mon Sep 17 00:00:00 2001 From: flatberg Date: Fri, 24 Aug 2007 11:48:29 +0000 Subject: [PATCH] u --- fluents/lib/blmfuncs.py | 13 +++++++++++-- fluents/lib/blmplots.py | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/fluents/lib/blmfuncs.py b/fluents/lib/blmfuncs.py index b7803bd..6cbeca0 100644 --- a/fluents/lib/blmfuncs.py +++ b/fluents/lib/blmfuncs.py @@ -18,9 +18,11 @@ from packer import Packer import blmplots -class NewStyleModel(Function): + +class NewStyleModel: def __init__(self, id='johndoe', name='JohnDoe'): - Function.__init__(self, id, name) + self.id = id + self.name = name self.name = name self.options = Options self.input_data = [] @@ -50,6 +52,13 @@ class NewStyleModel(Function): self.plots.append(plt) return plt + def save(self, stype=None): + pass + + def load(self): + pass + + class Model(Function): """Base class of bilinear models. diff --git a/fluents/lib/blmplots.py b/fluents/lib/blmplots.py index 9be96fa..7a7e5ce 100644 --- a/fluents/lib/blmplots.py +++ b/fluents/lib/blmplots.py @@ -193,7 +193,7 @@ class PcaLoadingPlot(BlmScatterPlot): def __init__(self, model, absi=0, ordi=1): title = "Pca loadings (%s)" %model._dataset['X'].get_name() BlmScatterPlot.__init__(self, title, model, absi, ordi, part_name='P', color_by='p_tsq') - + self.set_expvar_axlabels(param="expvarx") class PlsScorePlot(BlmScatterPlot): def __init__(self, model, absi=0, ordi=1):