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:
parent
633465e4c8
commit
a1ab79024e
@ -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
24
workflows/default.py
Normal 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.')
|
||||
|
Reference in New Issue
Block a user