This commit is contained in:
parent
dc43830752
commit
16ed2fd9c9
|
@ -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.
|
||||
|
|
|
@ -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):
|
||||
|
|
Reference in New Issue