testCore | R Documentation |
Performs a partial check of the classification part of CORElearn.
testCoreClass(continue=TRUE) testCoreAttrEval(continue=TRUE) testCoreReg(continue=TRUE) testCoreOrdEval(continue=TRUE) testCoreNA(continue=TRUE) testCoreRPORT(continue=TRUE) testCoreRand(continue=TRUE) allTests(continue=TRUE, timed=FALSE)
continue |
Logical. Whether a warning or an error should be generated when a test fails. |
timed |
Logical. Whether the time usage should be printed. |
Functions testCoreClass()
, testCoreAttrEval()
, testCoreReg()
evaluate
functions CoreModel()
, predict.CoreModel()
, modelEval()
, and
attrEval()
and perform a partial check of the obtained results.
Function testNA()
performs a test of consistency NA and NaN between R and CORElearn.
Functions testCoreRPORT()
and testCoreRand()
test, whether the
R_PORT
directive is defined in C code and whether R random number
generator is used. These tests are mostly used for debugging.
Function allTests()
calls all the above functions and prints a table
of the results. If an error is found, a more detailed information
is printed and the continuation of the tests depends on the argument
continue
.
The functions have no output value. The result OK or FAILED is printed.
Marko Robnik-Sikonja, Petr Savicky
CORElearn
.
allTests() # run all tests and generate an error, if any of the tests fails
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.