public class TTTLearnerMealy<I,O> extends BaseTTTLearner<MealyMachine<?,I,?,O>,I,Word<O>> implements LearningAlgorithm.MealyLearner<I,O>
BaseTTTLearner.BuilderDefaults, BaseTTTLearner.Splitter<I,D>
LearningAlgorithm.DFALearner<I>, LearningAlgorithm.MealyLearner<I,O>
alphabet, blockList, dtree, hypothesis
Constructor and Description |
---|
TTTLearnerMealy(Alphabet<I> alphabet,
MembershipOracle<I,Word<O>> oracle,
LocalSuffixFinder<? super I,? super Word<O>> suffixFinder) |
Modifier and Type | Method and Description |
---|---|
protected Word<O> |
computeHypothesisOutput(TTTState<I,Word<O>> state,
Iterable<? extends I> suffix) |
protected TTTTransition<I,Word<O>> |
createTransition(TTTState<I,Word<O>> state,
I sym) |
GraphDOTHelper<TTTState<I,Word<O>>,TTTHypothesis.TTTEdge<I,Word<O>>> |
getHypothesisDOTHelper() |
MealyMachine<?,I,?,O> |
getHypothesisModel()
Returns the current hypothesis model.
|
protected Word<O> |
predictSuccOutcome(TTTTransition<I,Word<O>> trans,
DTNode<I,Word<O>> succSeparator) |
addEventListener, chooseInnerNode, chooseLeaf, computeOutput, computeSuffixOutput, createMap, declareFinal, dtGraphView, finalizeAny, getDiscriminationTree, getHypothesisDS, getState, getTarget, initializeState, isAccessSequence, query, query, refineHypothesis, removeEventListener, split, startLearning, transformAccessSequence
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refineHypothesis, startLearning
public TTTLearnerMealy(Alphabet<I> alphabet, MembershipOracle<I,Word<O>> oracle, LocalSuffixFinder<? super I,? super Word<O>> suffixFinder)
public MealyMachine<?,I,?,O> getHypothesisModel()
LearningAlgorithm
N.B.: By the contract of this interface, the model returned by this method may not be
modified (i.e., M generally should refer to an immutable interface), and its validity
is retained only until the next invocation of LearningAlgorithm.refineHypothesis(DefaultQuery)
. If
older hypotheses have to be maintained, a copy of the returned model must be made.
Please note that it should be illegal to invoke this method before an initial invocation
of LearningAlgorithm.startLearning()
.
getHypothesisModel
in interface LearningAlgorithm<MealyMachine<?,I,?,O>,I,Word<O>>
protected TTTTransition<I,Word<O>> createTransition(TTTState<I,Word<O>> state, I sym)
createTransition
in class BaseTTTLearner<MealyMachine<?,I,?,O>,I,Word<O>>
protected Word<O> predictSuccOutcome(TTTTransition<I,Word<O>> trans, DTNode<I,Word<O>> succSeparator)
predictSuccOutcome
in class BaseTTTLearner<MealyMachine<?,I,?,O>,I,Word<O>>
protected Word<O> computeHypothesisOutput(TTTState<I,Word<O>> state, Iterable<? extends I> suffix)
computeHypothesisOutput
in class BaseTTTLearner<MealyMachine<?,I,?,O>,I,Word<O>>
public GraphDOTHelper<TTTState<I,Word<O>>,TTTHypothesis.TTTEdge<I,Word<O>>> getHypothesisDOTHelper()
getHypothesisDOTHelper
in class BaseTTTLearner<MealyMachine<?,I,?,O>,I,Word<O>>
Copyright © 2015. All rights reserved.