Accessor: test/TrainableTest

test/TrainableTest

Compare the input with a known good input. If you set ''trainingMode'' to true and provide inputs, then the inputs will be recorded in the ''correctValues'' parameters. Otherwise, the inputs will be compared against those in the ''correctValue'' parameter.

Version:
  • $$Id$$
Author:
  • Christopher Brooks based on the Ptolemy NonStrictTest actor by Paul Whitaker, Christopher Hylands, Edward A. Lee
Source:
Inputs:
Name Type Description
input The input value.
Outputs:
Name Type Description
output False as long as there is data to compare against the input

Methods

(static) initialize()

Create an input handler to compare the input with the appropriate element(s) from correctValues.

Source:

(static) wrapup()

If trainingMode is true, then updated the correctValues.

Source: