|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mulan.classifier.neural.MMPUpdateRuleBase
public abstract class MMPUpdateRuleBase
The base class of update rules for MMPLearner
. The base class implements the
ModelUpdateRule
interface and provides a common logic shared among update rules
for MMPLearner
. More information on uprate rules logic can be found in paper referenced
by MMPLearner
.
MMPLearner
Constructor Summary | |
---|---|
MMPUpdateRuleBase(List<Neuron> perceptrons,
RankingLossFunction loss)
Creates a new instance of MMPUpdateRuleBase . |
Method Summary | |
---|---|
protected abstract double[] |
computeUpdateParameters(DataPair example,
double[] confidences,
double loss)
Computes update parameters for each perceptron which will be subsequently used for updating the weights. |
double |
process(DataPair example,
Map<String,Object> params)
Process the training example and performs a model update when suitable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMPUpdateRuleBase(List<Neuron> perceptrons, RankingLossFunction loss)
MMPUpdateRuleBase
.
perceptrons
- the list of perceptrons, representing the model, which will receive updates.loss
- the lossFunction measure used to decide when the model should be updated by the ruleMethod Detail |
---|
public final double process(DataPair example, Map<String,Object> params)
ModelUpdateRule
process
in interface ModelUpdateRule
example
- the input exampleparams
- the additional parameters for an update.
protected abstract double[] computeUpdateParameters(DataPair example, double[] confidences, double loss)
process(DataPair, Map)
function, when update of model for
given input example is needed.
example
- the input exampleconfidences
- the confidences outputed by the model the input exampleloss
- the lossFunction measure of the model for given input example
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |