Package | Description |
---|---|
org.apache.commons.math3.ml.neuralnet |
Neural networks.
|
org.apache.commons.math3.ml.neuralnet.sofm |
Self Organizing Feature Map.
|
org.apache.commons.math3.ml.neuralnet.twod |
Two-dimensional neural networks.
|
Modifier and Type | Field and Description |
---|---|
private Neuron[] |
Network.SerializationProxy.neuronList
Neurons.
|
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentHashMap<java.lang.Long,Neuron> |
Network.neuronMap
Neurons.
|
Modifier and Type | Method and Description |
---|---|
static Neuron |
MapUtils.findBest(double[] features,
java.lang.Iterable<Neuron> neurons,
DistanceMeasure distance)
Finds the neuron that best matches the given features.
|
Neuron |
Network.getNeuron(long id)
Retrieves the neuron with the given (unique)
id . |
Modifier and Type | Method and Description |
---|---|
static Pair<Neuron,Neuron> |
MapUtils.findBestAndSecondBest(double[] features,
java.lang.Iterable<Neuron> neurons,
DistanceMeasure distance)
Finds the two neurons that best match the given features.
|
static Pair<Neuron,Neuron> |
MapUtils.findBestAndSecondBest(double[] features,
java.lang.Iterable<Neuron> neurons,
DistanceMeasure distance)
Finds the two neurons that best match the given features.
|
java.util.Collection<Neuron> |
Network.getNeighbours(java.lang.Iterable<Neuron> neurons)
Retrieves the neurons in the neighbourhood of any neuron in the
neurons list. |
java.util.Collection<Neuron> |
Network.getNeighbours(java.lang.Iterable<Neuron> neurons,
java.lang.Iterable<Neuron> exclude)
Retrieves the neurons in the neighbourhood of any neuron in the
neurons list. |
java.util.Collection<Neuron> |
Network.getNeighbours(Neuron neuron)
Retrieves the neighbours of the given neuron.
|
java.util.Collection<Neuron> |
Network.getNeighbours(Neuron neuron,
java.lang.Iterable<Neuron> exclude)
Retrieves the neighbours of the given neuron.
|
java.util.Collection<Neuron> |
Network.getNeurons(java.util.Comparator<Neuron> comparator)
Creates a list of the neurons, sorted in a custom order.
|
java.util.Iterator<Neuron> |
Network.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
Network.addLink(Neuron a,
Neuron b)
Adds a link from neuron
a to neuron b . |
int |
Network.NeuronIdentifierComparator.compare(Neuron a,
Neuron b) |
void |
Network.deleteLink(Neuron a,
Neuron b)
Deletes the link between neurons
a and b . |
void |
Network.deleteNeuron(Neuron neuron)
Deletes a neuron.
|
java.util.Collection<Neuron> |
Network.getNeighbours(Neuron neuron)
Retrieves the neighbours of the given neuron.
|
java.util.Collection<Neuron> |
Network.getNeighbours(Neuron neuron,
java.lang.Iterable<Neuron> exclude)
Retrieves the neighbours of the given neuron.
|
Modifier and Type | Method and Description |
---|---|
static double |
MapUtils.computeQuantizationError(java.lang.Iterable<double[]> data,
java.lang.Iterable<Neuron> neurons,
DistanceMeasure distance)
Computes the quantization error.
|
static Neuron |
MapUtils.findBest(double[] features,
java.lang.Iterable<Neuron> neurons,
DistanceMeasure distance)
Finds the neuron that best matches the given features.
|
static Pair<Neuron,Neuron> |
MapUtils.findBestAndSecondBest(double[] features,
java.lang.Iterable<Neuron> neurons,
DistanceMeasure distance)
Finds the two neurons that best match the given features.
|
java.util.Collection<Neuron> |
Network.getNeighbours(java.lang.Iterable<Neuron> neurons)
Retrieves the neurons in the neighbourhood of any neuron in the
neurons list. |
java.util.Collection<Neuron> |
Network.getNeighbours(java.lang.Iterable<Neuron> neurons,
java.lang.Iterable<Neuron> exclude)
Retrieves the neurons in the neighbourhood of any neuron in the
neurons list. |
java.util.Collection<Neuron> |
Network.getNeighbours(java.lang.Iterable<Neuron> neurons,
java.lang.Iterable<Neuron> exclude)
Retrieves the neurons in the neighbourhood of any neuron in the
neurons list. |
java.util.Collection<Neuron> |
Network.getNeighbours(Neuron neuron,
java.lang.Iterable<Neuron> exclude)
Retrieves the neighbours of the given neuron.
|
java.util.Collection<Neuron> |
Network.getNeurons(java.util.Comparator<Neuron> comparator)
Creates a list of the neurons, sorted in a custom order.
|
Constructor and Description |
---|
Network(long nextId,
int featureSize,
Neuron[] neuronList,
long[][] neighbourIdList)
Constructor with restricted access, solely used for deserialization.
|
SerializationProxy(long nextId,
int featureSize,
Neuron[] neuronList,
long[][] neighbourIdList) |
Modifier and Type | Method and Description |
---|---|
private Neuron |
KohonenUpdateAction.findAndUpdateBestNeuron(Network net,
double[] features,
double learningRate)
Searches for the neuron whose features are closest to the given
sample, and atomically updates its features.
|
Modifier and Type | Method and Description |
---|---|
private void |
KohonenUpdateAction.updateNeighbouringNeuron(Neuron n,
double[] features,
double learningRate)
Atomically updates the given neuron.
|
Modifier and Type | Method and Description |
---|---|
Neuron |
NeuronSquareMesh2D.getNeuron(int i,
int j)
Retrieves the neuron at location
(i, j) in the map. |