|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.classifier.neural.BPMLLAlgorithm
public class BPMLLAlgorithm
The implementation of Back-Propagation Multi-Label Learning (BPMLL) algorithm for neural networks.
The algorithm uses weights decay regularization to avoid overfitting.
For more information see:
Zhang, M.L., Zhou, Z.H.: Multi-label neural networks with applications to functional genomics
and text categorization. IEEE Transactions on Knowledge and Data Engineering 18 (2006) 1338-1351
NeuralNet| Constructor Summary | |
|---|---|
BPMLLAlgorithm(NeuralNet neuralNet,
double weightsDecayCost)
Creates a BPMLLAlgorithm instance. |
|
| Method Summary | |
|---|---|
NeuralNet |
getNetwork()
Returns the neural network which is learned/updated by the algorithm. |
double |
getNetworkError(double[] inputPattern,
double[] expectedLabels)
Returns the error of the neural network for given input. |
double |
getWeightsDecayCost()
Returns the value of weights decay cost term used for regularization. |
double |
learn(double[] inputPattern,
double[] expectedLabels,
double learningRate)
Performs one learning step with given input pattern and expected output values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BPMLLAlgorithm(NeuralNet neuralNet,
double weightsDecayCost)
BPMLLAlgorithm instance.
neuralNet - the neural network model to learnweightsDecayCost - the weights decay cost term used for regularization.
The value must be greater than 0 and no more than 1.| Method Detail |
|---|
public NeuralNet getNetwork()
public double getWeightsDecayCost()
public double learn(double[] inputPattern,
double[] expectedLabels,
double learningRate)
Double.NaN.
inputPattern - the input pattern for the networkexpectedLabels - the ideal, expected values the network should output as a
response for the given input. If the i-th label class belongs to the input pattern
instance, then i-th value is +1, otherwise the value is -1.learningRate - the learning rate used to update the neural network weights
Double.NaN if the passed input can not be processed.
public double getNetworkError(double[] inputPattern,
double[] expectedLabels)
Double.NaN.
inputPattern - the input pattern to be processedexpectedLabels - the ideal, expected values the network should output as a
response for the given input. If the ith label class belongs to the input pattern
instance, then ith value is +1, otherwise the value is -1.
Double.NaN if the passed input can not be processed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||