This commit is contained in:
Arnar Flatberg 2007-08-24 11:48:29 +00:00
parent dc43830752
commit 16ed2fd9c9
2 changed files with 12 additions and 3 deletions

View File

@ -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.

View File

@ -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):