Table of Contents

Class: OutputDevianceCalculator charlemagne/deviancecalculator.py

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.

Base Classes   
InputDevianceCalculator
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

...


Table of Contents

This document was automatically generated on Tue Jun 10 03:55:07 2003 by HappyDoc version 2.0.1