The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Functions
constructModels.m File Reference

Functions

function constructModels (var models, var samples, var values, var parallelMode)
 Given a cell or array of model objects this function will call construct on all of them. More...
 

Detailed Description

Authors
SUMO Lab Team
Version
2018a
Date
Copyright 2006-2018

This file is part of the Surrogate Modeling Toolbox ("SUMO Toolbox") and you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. With the additional provision that a commercial license must be purchased if the SUMO Toolbox is used, modified, or extended in a commercial setting. For details see the included LICENSE.txt file. When referring to the SUMO Toolbox please make reference to the corresponding publication:

Contact : sumo@.nosp@m.sumo.nosp@m..inte.nosp@m.c.ug.nosp@m.ent.b.nosp@m.e - http://sumo.intec.ugent.be Signature models = constructModels(models,samples,values,parallelMode)

Function Documentation

function constructModels ( var  models,
var  samples,
var  values,
var  parallelMode 
)

Given a cell or array of model objects this function will call construct on all of them.

If parallelMode is true the parallel computing toolbox will be used if available. This means models will be trained in parallel, saving time. If the toolbox is not available, fall back to training sequentially.

Note
ugly wrapper so we can record training time in one place. should be done in Model itself, but construct* mess doesnt allow it atm In addition, this way doesnt work for parConstruct