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
Model: The model object needed to perform testing and validation.
modelType: The type where the model falls under. Available options are “Regression” and “Classification”.
maxNumberOfIterations: How many times should the model needed to be trained if it is being validated.
maxGeneralizationError: The maximum generalization error so that it stops training if it is being validated. It is calculated by subtracting the validation cost and the training cost.
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)
Model: The model object needed to perform testing and validation.
modelType: The type where the model falls under. Available options are “Regression” and “Classification”.
maxNumberOfIterations: How many times should the model needed to be trained if it is being validated.
maxGeneralizationError: The maximum generalization error so that it stops training if it is being validated. It is calculated by subtracting the validation cost and the training cost.
Set the feature matrix and the label vector to perform certain merges.
ModelChecker:setClassesList(classesList: [])
Test the model.
ModelChecker:test(testFeatureMatrix: Matrix, testLabelVector: Matrix): number, Matrix, Matrix
testFeatureMatrix: Matrix containing all data for testing.
testLabelVector: A (n x 1) matrix containing values related to featureMatrix.
calculatedError: An array containing all the testing cost.
errorVector: A vector that contains the error values during the testing.
predictedLabelMatrix: A matrix that contains all the predicted values generated by the model.
Validate the model.
ModelChecker:validate(trainFeatureMatrix: Matrix, trainLabelVector: Matrix, validationFeatureMatrix: Matrix, validationLabelVector: Matrix): number[], number[]
trainFeatureMatrix: Matrix containing all data for training.
trainLabelVector: A (n x 1) matrix containing values related to trainFeatureMatrix.
testFeatureMatrix: Matrix containing all data for validation.
testLabelVector: A (n x 1) matrix containing values related to testFeatureMatrix.
trainErrorArray: An array containing all the training cost.
validationErrorArray: An array containing all the validation cost.