edu.duke.cs.banjo.learner.components
Interface EvaluatorI

All Known Implementing Classes:
Evaluator

public interface EvaluatorI

Documents the interface for creating an evaluator implementation.

Details:

Change History:
Created on Apr 13, 2004

Author:
Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.

Method Summary
 void adjustNodeScoresForUndo(BayesNetChangeI suggestedBayesNetChange)
          Adjusts the various internal score containers when a bayesNetChange is not permanently kept.
 double computeInitialNetworkScore(BayesNetManagerI currentBayesNetManager)
           
 java.lang.StringBuffer provideCollectedStatistics()
           
 double updateNetworkScore(BayesNetManagerI currentBayesNetManager, BayesNetChangeI currentBayesNetChange)
          Computes the score of the network described by the bayesNetManager, based on the proposed bayesNetChange.
 void updateProcessData(Settings processData)
          For future use.
 

Method Detail

computeInitialNetworkScore

public double computeInitialNetworkScore(BayesNetManagerI currentBayesNetManager)
                                  throws java.lang.Exception
Parameters:
currentBayesNetManager - The underlying network.
Returns:
The score for the network described by currentBayesNetManager.
Throws:
java.lang.Exception

updateNetworkScore

public double updateNetworkScore(BayesNetManagerI currentBayesNetManager,
                                 BayesNetChangeI currentBayesNetChange)
                          throws java.lang.Exception
Computes the score of the network described by the bayesNetManager, based on the proposed bayesNetChange.

Parameters:
currentBayesNetManager - The current underlying network.
currentBayesNetChange - The proposed change to the network.
Returns:
Returns the score of the updated network.
Throws:
java.lang.Exception

adjustNodeScoresForUndo

public void adjustNodeScoresForUndo(BayesNetChangeI suggestedBayesNetChange)
                             throws java.lang.Exception
Adjusts the various internal score containers when a bayesNetChange is not permanently kept.

Parameters:
suggestedBayesNetChange - The change to the network whose effect needs to be undone.
Throws:
java.lang.Exception

updateProcessData

public void updateProcessData(Settings processData)
                       throws java.lang.Exception
For future use. Updates whatever setting within processData that is being changed in the particular evaluator implementation.

Parameters:
processData - The data to be exchanged.
Throws:
java.lang.Exception

provideCollectedStatistics

public java.lang.StringBuffer provideCollectedStatistics()
                                                  throws java.lang.Exception
Returns:
Returns the statistics about the particular evaluator implementation.
Throws:
java.lang.Exception