A DevianceCalculator which calculates deviance based on the input and output set.
Deviance is calculated based on the difference between the
expected output from an output list and the actual output.
|
Methods
|
|
__init__
calculate
getOutput
setOutput
|
|
|
__init__
|
__init__ (
self,
input,
output,
interpreter=None,
)
|
|
|
calculate
|
calculate (
self,
p,
i,
)
Calculate the deviance the specified program on the specified input/output index.
WARNING: This can raise NaughtyException which should be
dealt with in the caller.
|
|
|
getOutput
|
getOutput ( self )
Return the output set
...
|
|
|
setOutput
|
setOutput ( self, output )
Set the output set
...
|
|