public interface INeuralNet
Represents a neural net
Modifier and Type | Method and Description |
---|---|
void |
addHlayer(LinkedLayer layer)
Adds a new layer to the neural net
|
INeuralNet |
copy()
Returns a copy of the neural net
|
boolean |
equals(INeuralNet other)
Checks if this neural net is equal to another
|
LinkedLayer |
getHlayer(int index)
Returns a specific hidden layer of the neural net
|
InputLayer |
getInputLayer()
Returns the input layer of this neural net
|
int |
getNofhlayers()
Returns the current number of hidden layers of the neural net
|
int |
getNofhneurons()
Returns the number of hidden neurons of this neural net
|
int |
getNoflinks()
Returns the number of effective links of this neural net
|
LinkedLayer |
getOutputLayer()
Returns the output layer of this neural net
|
int |
hashCode()
Returns an integer number that identifies the neural net
|
void |
keepRelevantLinks(double significativeWeight)
Keep relevant links, that is, those links whose weight is higher
than certain number
|
boolean |
linksEmpty()
Checks if this neural net is empty of links
|
boolean |
linksFull()
Checks if this neural net is full of links
|
boolean |
neuronsEmpty()
Checks if this neural net is empty of neurons
|
boolean |
neuronsFull()
Checks if this neural net is full of neurons
|
void |
setInputLayer(InputLayer inputLayer)
Sets the input layer of this neural net
|
void |
setOutputLayer(LinkedLayer outputLayer)
Sets the output layer of this neural net
|
int getNofhlayers()
Returns the current number of hidden layers of the neural net
InputLayer getInputLayer()
Returns the input layer of this neural net
LinkedLayer getHlayer(int index)
Returns a specific hidden layer of the neural net
index
- Number of layer to returnLinkedLayer getOutputLayer()
Returns the output layer of this neural net
void setInputLayer(InputLayer inputLayer)
Sets the input layer of this neural net
inputLayer
- New input layer of the netvoid addHlayer(LinkedLayer layer)
Adds a new layer to the neural net
layer
- New hidden layervoid setOutputLayer(LinkedLayer outputLayer)
Sets the output layer of this neural net
outputLayer
- New output layer of the netINeuralNet copy()
Returns a copy of the neural net
boolean equals(INeuralNet other)
Checks if this neural net is equal to another
other
- Other neural net to compareint hashCode()
Returns an integer number that identifies the neural net
hashCode
in class java.lang.Object
boolean neuronsFull()
Checks if this neural net is full of neurons
boolean neuronsEmpty()
Checks if this neural net is empty of neurons
boolean linksFull()
Checks if this neural net is full of links
boolean linksEmpty()
Checks if this neural net is empty of links
int getNofhneurons()
Returns the number of hidden neurons of this neural net
int getNoflinks()
Returns the number of effective links of this neural net
void keepRelevantLinks(double significativeWeight)
Keep relevant links, that is, those links whose weight is higher than certain number
significativeWeight
- Significative weight