|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.duke.cs.banjo.learner.Searcher
Combines common code shared by the different searcher implementations.
Details:
Change History:
Created on Apr 14, 2004
10/18/2005 (v2.0) hjs
Scope change of several variables.
Code cleanup as part of initial setting up of version 1.5.
Nested Class Summary | |
protected class |
Searcher.HighScoreSetUpdater
Base class of inner classes for updating the score info for a search. |
protected class |
Searcher.SearchExecuter
Base class of inner classes for executing a search. |
protected class |
Searcher.SearchMultipleTerminator
Subclass class of inner classes for terminating a search using possibly multiple criteria. |
protected class |
Searcher.SearchTerminator
Base class of inner classes for terminating a search. |
Constructor Summary | |
Searcher(Settings _processData)
Constructor for instantiating the objects shared between searcher implementations. |
Method Summary | |
protected boolean |
askToVerifySettings()
(Optional) Lets user verify the selected search parameters before running a search. |
abstract void |
executeSearch()
Executes the search based on the particular search algorithm. |
protected java.lang.StringBuffer |
feedbackBasedOnTime()
|
protected void |
finalCleanup()
Gathers the final set of data produced by the search, collected from the core components. |
java.lang.Object |
getBayesNetManager()
|
protected long |
getElapsedTime()
|
double |
getHighScore()
|
java.lang.Object |
getHighScoreStructure()
|
java.util.Collection |
getHighScoreStructureSet()
|
long |
getNetworksVisitedGlobalCounter()
|
RecorderI |
getSearcherStatistics()
|
protected void |
handleOutOfMemory()
|
protected java.lang.StringBuffer |
listScores()
|
java.lang.StringBuffer |
provideCollectedStatistics()
|
protected void |
pruneEquivalentNetworks()
Prunes the set of "current" high-scoring networks into the set of non-equivalent ones |
protected java.lang.StringBuffer |
trackIntermediateResults()
Method used by terminator inner classes, for providing a display of the intermediate results (networks and their scores). |
private boolean |
validateRequiredData()
Validates the settings values required for the searcher base class (a multitude of settings including the variable count, min and max Markov orders, max parent counts, and more). |
java.lang.Object |
validChoices()
Provides the valid choices for this class, here: for the recorders. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.duke.cs.banjo.learner.SearcherI |
updateProcessData |
Field Detail |
protected ProposerI proposer
protected EvaluatorI evaluator
protected DeciderI decider
protected CycleCheckerI cycleChecker
protected Searcher.SearchExecuter searchExecuter
protected Searcher.SearchTerminator searchTerminator
protected Searcher.HighScoreSetUpdater highScoreSetUpdater
protected Searcher.SearchTerminator[] terminator
protected final int varCount
protected final int minMarkovLag
protected final int maxMarkovLag
protected long networksVisitedGlobalCounter
protected long networksVisitedInnerLoopCounter
protected long maxNetworksVisitedInInnerLoop
protected final double unreachableScore
protected long maxSearchTime
protected long maxSearchLoops
protected long maxRestarts
protected long restartCount
protected java.lang.StringBuffer restartsAtCounts
protected Settings processData
protected volatile RecorderI searcherStatistics
protected final EquivalenceCheckerI equivalenceChecker
protected boolean isEquivalent
protected volatile java.lang.StringBuffer searcherStats
protected BayesNetManagerI bayesNetManager
protected BayesNetChangeI suggestedBayesNetChange
protected double currentBestScoreSinceRestart
protected BayesNetStructureI highScoreStructureSinceRestart
protected volatile java.util.TreeSet highScoreStructureSet
protected volatile java.util.TreeSet nonEquivalentHighScoreStructureSet
protected long nBestCount
protected final long nBestMax
protected double nBestThresholdScore
java.util.List suggestedChangeList
protected int percentLevel
protected boolean displayFeedbackByTime
protected final double feedbackTimeDelta
protected double nextFeedbackTime
protected final boolean trackIntermediateResults
protected final double screenReportTimeDelta
protected double nextScreenReportTime
protected final double screenReportInterval
protected final double fileReportTimeDelta
protected double nextFileReportTime
protected final double fileReportInterval
protected java.lang.String displayMemoryInfo
protected volatile long startTime
protected volatile long elapsedTime
protected volatile long intermediateTime
protected java.text.DateFormat timeFormat
protected long estimatedTime
protected int numberOfDecimals
protected int percentPaddingLength
protected int timePaddingLength
protected int loopPaddingLength
protected int restartPaddingLength
protected java.lang.String newLinePlusPrefix
protected java.lang.String linePostfix
protected java.lang.String prefix
protected int lineLength
protected java.lang.String feedbackRestarts
protected final boolean restartWithRandomNetwork
protected java.lang.StringBuffer optionalThreadLabel
Constructor Detail |
public Searcher(Settings _processData) throws java.lang.Exception
_processData
- The special container for the initial, validated, and
dynamically updated settings.Method Detail |
private boolean validateRequiredData() throws java.lang.Exception
java.lang.Exception
protected void finalCleanup() throws java.lang.Exception
java.lang.Exception
protected void pruneEquivalentNetworks() throws java.lang.Exception
java.lang.Exception
public long getNetworksVisitedGlobalCounter()
public RecorderI getSearcherStatistics()
public java.lang.Object getBayesNetManager()
public double getHighScore()
public java.lang.Object getHighScoreStructure()
public java.util.Collection getHighScoreStructureSet()
protected long getElapsedTime()
protected java.lang.StringBuffer listScores()
protected boolean askToVerifySettings() throws java.lang.Exception
java.lang.Exception
public java.lang.StringBuffer provideCollectedStatistics() throws java.lang.Exception
provideCollectedStatistics
in interface SearcherI
java.lang.Exception
protected java.lang.StringBuffer feedbackBasedOnTime() throws java.lang.Exception
java.lang.Exception
protected java.lang.StringBuffer trackIntermediateResults() throws java.lang.Exception
java.lang.Exception
protected void handleOutOfMemory() throws java.lang.Exception
java.lang.Exception
public java.lang.Object validChoices()
public abstract void executeSearch() throws java.lang.Exception
executeSearch
in interface SearcherI
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |