WorkTrackingModel

class pyapprox.models.wrappers.WorkTrackingModel(function, base_model=None, num_config_vars=0)[source]

Bases: object

Methods Summary

__call__(samples)

Evaluate self.function

cost_function(config_samples)

Retrun the cost of evaluating the functions with the ids given in a set of config_samples.

Methods Documentation

__call__(samples)[source]

Evaluate self.function

Parameters
samplesnp.ndarray (nvars,nsamples)

Samples used to evaluate self.function

Returns
valuesnp.ndarray (nsamples,nqoi)

The values of self.function. The last qoi returned by self.function (i.e. the last column of the output array of size (nsamples,nqoi+1) is the cost of the simulation. This column is not included in values.

cost_function(config_samples)[source]

Retrun the cost of evaluating the functions with the ids given in a set of config_samples.

Parameters
config_samplesnp.ndarray (nconfig_vars,nsamples)

The configuration indices