Adding simple workflow named "default" with PCA, PLS and LPLS. Changed the program to

use this as the default workflow.
This commit is contained in:
Einar Ryeng 2011-03-06 15:27:16 +00:00
parent 633465e4c8
commit a1ab79024e
2 changed files with 25 additions and 1 deletions

View File

@ -66,7 +66,7 @@ def parse_options():
help='List available workflows.')
op.add_option('-w', '--workflow',
default='chemometric',
default='default',
help='Start with selected workflow')
op.add_option('-c', '--generate-config',

24
workflows/default.py Normal file
View File

@ -0,0 +1,24 @@
import sys,os
import os.path
import cPickle
from laydi import logger, plots, workflow, dataset, main, annotations
from laydi.lib import blmfuncs, nx_utils, validation, engines, cx_stats, cx_utils
class DefaultWorkflow(workflow.Workflow):
name = 'Default'
ident = 'default'
description = 'General bilinear modelling workflow'
def __init__(self):
workflow.Workflow.__init__(self)
# BLM's
model = workflow.Stage('models', 'Models')
model.add_function(blmfuncs.PCA())
model.add_function(blmfuncs.PLS())
model.add_function(blmfuncs.LPLS())
self.add_stage(model)
logger.log('debug', 'Default workflow loaded.')