build

open override fun build(modelConfiguration: Map<String, String>?, experimentRunParameters: ExperimentRunParametersIfc?): Model(source)

Constructs a Model instance based on the provided configuration strings.

See the interface KDoc for the build-call contract — in particular, that this method may be invoked more than once per Run and must therefore be a side-effect-free pure constructor.

Return

A Model object constructed using the provided configuration information.

Parameters

modelConfiguration

A map of strings representing the model configuration. The key string should contain the necessary information for being able to use the paired string value. The stored string values could be anything. For example, the value could be a JSON string and the key provides information about how to process the JSON. The intent is that the map should be sufficient to build an appropriate Model instance. The map is optional. The function should return a model that is usable.

experimentRunParameters

the run parameters to apply to the model during the building process