|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.marmoush.jann.neuralgraph.NeuralDirectedGraph
public class NeuralDirectedGraph
The Class NeuralDirectedGraph.
Constructor Summary | |
---|---|
NeuralDirectedGraph()
Instantiates a new neural directed graph. |
|
NeuralDirectedGraph(int... nNeuronsPerLayer)
Instantiates a new neural directed graph. |
|
NeuralDirectedGraph(List<Integer> nNeuronsPerLayer)
Instantiates a new neural directed graph. |
Method Summary | |
---|---|
void |
clearConnections()
Clear connections. |
void |
connectLayersAsFF()
Connect layers as ff. |
List<Integer> |
getAllLayersNumOfNeurons()
Gets the all layers num of neurons. |
int |
getInputLength(int lyrIdx)
Gets the input length. |
int |
getLayerNumOfNeurons(int lyrIdx)
Gets the layer num of neurons. |
int |
getNumOfLayers()
Gets the num of layers. |
List<Integer> |
getPredecessorsOf(int lyrIdx)
Gets the predecessors of. |
List<Integer> |
getSuccessorsOf(int lyrIdx)
Gets the successors of. |
void |
setAllLayersNumOfNeurons(List<Integer> nNeuronsPerLayer)
Sets the all layers num of neurons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NeuralDirectedGraph()
public NeuralDirectedGraph(int... nNeuronsPerLayer)
nNeuronsPerLayer
- the n neurons per layerpublic NeuralDirectedGraph(List<Integer> nNeuronsPerLayer)
nNeuronsPerLayer
- the n neurons per layerMethod Detail |
---|
public void clearConnections()
public void connectLayersAsFF()
public List<Integer> getAllLayersNumOfNeurons()
INeuralDirectedGraphable
getAllLayersNumOfNeurons
in interface INeuralDirectedGraphable
public int getInputLength(int lyrIdx)
INeuralDirectedGraphable
getInputLength
in interface INeuralDirectedGraphable
lyrIdx
- the layer index
public int getLayerNumOfNeurons(int lyrIdx)
INeuralDirectedGraphable
getLayerNumOfNeurons
in interface INeuralDirectedGraphable
lyrIdx
- the layer index
public int getNumOfLayers()
public List<Integer> getPredecessorsOf(int lyrIdx)
INeuralDirectedGraphable
getPredecessorsOf
in interface INeuralDirectedGraphable
lyrIdx
- the layer index
public List<Integer> getSuccessorsOf(int lyrIdx)
INeuralDirectedGraphable
getSuccessorsOf
in interface INeuralDirectedGraphable
lyrIdx
- the layer index
public void setAllLayersNumOfNeurons(List<Integer> nNeuronsPerLayer)
INeuralDirectedGraphable
setAllLayersNumOfNeurons
in interface INeuralDirectedGraphable
nNeuronsPerLayer
- the new all layers num of neurons
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |