|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.duke.cs.banjo.learner.components.Decider
Combines common code shared by the different decider implementations.
Details:
Change History:
Created on Apr 13, 2004
3/24/2008 (v2.2) hjs Modify access to random numbers.
Field Summary | |
protected long[] |
betterScoreChangeTypeTracker
|
protected long |
comparisonsSinceLastHighScore
|
protected long[] |
consideredChangeTypeTracker
|
protected double |
currentScore
|
protected int |
minMarkovLag
|
protected long[] |
otherAcceptedChangeTypeTracker
|
protected Settings |
processData
|
protected java.util.Random |
rnd
|
Constructor Summary | |
Decider(BayesNetManagerI _initialBayesNet,
Settings _processData)
|
Method Summary | |
double |
getComparisonsSinceLastHighScore()
|
double |
getCurrentScore()
|
abstract boolean |
isChangeAccepted(double _newScore,
BayesNetChangeI _bayesNetChange)
|
java.lang.StringBuffer |
provideCollectedStatistics()
Collects a basic set of decider-related statistics that any subclass can use as default. |
void |
setCurrentScore(double _currentScore)
Sets the score of the current network. |
void |
updateProcessData(Settings _processData)
Updates whatever setting within processData that is being changed in the particular decider implementation (usually called from the overarching search method; See, e.g., the exchange of data between SearcherSimAnneal and DeciderMetropolis). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double currentScore
protected final java.util.Random rnd
protected final int minMarkovLag
protected long comparisonsSinceLastHighScore
protected long[] consideredChangeTypeTracker
protected long[] otherAcceptedChangeTypeTracker
protected long[] betterScoreChangeTypeTracker
protected Settings processData
Constructor Detail |
public Decider(BayesNetManagerI _initialBayesNet, Settings _processData) throws java.lang.Exception
Method Detail |
public abstract boolean isChangeAccepted(double _newScore, BayesNetChangeI _bayesNetChange) throws java.lang.Exception
isChangeAccepted
in interface DeciderI
_newScore
- The score of the network._bayesNetChange
- The change to the network.
java.lang.Exception
public final double getCurrentScore()
public double getComparisonsSinceLastHighScore()
public void setCurrentScore(double _currentScore)
DeciderI
setCurrentScore
in interface DeciderI
_currentScore
- The currentScore to set.public void updateProcessData(Settings _processData) throws java.lang.Exception
DeciderI
updateProcessData
in interface DeciderI
_processData
- The data to be exchanged.
java.lang.Exception
public java.lang.StringBuffer provideCollectedStatistics() throws java.lang.Exception
provideCollectedStatistics
in interface DeciderI
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |