DataPredict

API Reference - Others - ModelChecker

Constructors

new()

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

ModelChecker.new(Model: ModelObject, modelType: string, maxNumberOfIterations: integer, maxGeneralizationError: number): ModelCheckerObject

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.

ModelChecker:setParameters(Model: ModelObject, modelType: string, maxNumberOfIterations: integer, maxGeneralizationError: number)

Parameters:

setClassesList()

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

ModelChecker:setClassesList(classesList: [])

Parameters:

test()

Test the model.

ModelChecker:test(testFeatureMatrix: Matrix, testLabelVector: Matrix): number, Matrix, Matrix

Parameters:

Returns:

validate()

Validate the model.

ModelChecker:validate(trainFeatureMatrix: Matrix, trainLabelVector: Matrix, validationFeatureMatrix: Matrix, validationLabelVector: Matrix): number[], number[]

Parameters:

Returns: