DataPredict

API Reference - Others - ModelParametersMerger

It is a class for handling the merging of model parameters.

Notes

Constructors

new()

Creates a new ModelParametersMerger object. If any of the arguments are not given, default argument values for that argument will be used.

ModelParametersMerger.new(Model: ModelObject, modelType: string, mergeType: string): ModelParametersMergerObject

Parameters:

Returns:

Functions

setParameters()

Set ModelParametersMerger’s parameters. When any of the arguments are not given, previous argument values for that argument will be used.

ModelParametersMerger:setParameters(Model: ModelObject, modelType: string, mergeType: string)

Parameters:

merge()

Merges existing model parameters to create a new one.

ModelParametersMerger:merge(...: table/matrix): table / matrix

Parameters:

Returns:

setCustomSplitPercentageArray()

Sets a custom split percentage for each of the model parameters. This will be used when “custom” merge type is used.

ModelParametersMerger:setCustomSplitPercentageArray(splitPercentageArray: number[])

Parameters:

setData()

Set the feature matrix and the label vector to perform certain merges.

ModelParametersMerger:setData(featureMatrix: Matrix, labelVector: Matrix)

Parameters: