|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.NetworkBuilder
TODO Implement a generic network builder.
| Constructor Summary | |
NetworkBuilder()
|
|
| Method Summary | |
void |
addHiddenLayer(int size)
Adds a hidden layer to build with the given size. |
void |
addInputNeuron(java.lang.String name)
Adds an input neuron to the builder. |
void |
addInputNeurons(java.util.List neurons)
Adds a list of input neurons to the network builder. |
void |
addOutputNeuron(java.lang.String name)
Adds an output neuron to the builder. |
void |
addOutputNeurons(java.util.List neurons)
Adds a list of output neurons to the builder. |
Network |
buildNetwork()
Build a network. |
ActivationFactory |
getActivationFactory()
Returns the activation factory for this builder. |
java.util.List |
getSizes()
Return the sizes of the layers of the network to build |
void |
setActivationFactory(ActivationFactory factory)
Sets the factory that will create activation functions, therefore building the network with the desired activation function. |
void |
setSizes(java.util.List sizes)
Set the sizes of the layers of the network to build |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NetworkBuilder()
| Method Detail |
public java.util.List getSizes()
public void setSizes(java.util.List sizes)
sizes - The layer sizes.public void addHiddenLayer(int size)
size - The size of the hidden layer.public void addInputNeuron(java.lang.String name)
name - The name of the input neuron.public void addInputNeurons(java.util.List neurons)
neurons - The list of neurons.public void addOutputNeuron(java.lang.String name)
name - The name of the output neuron.public void addOutputNeurons(java.util.List neurons)
neurons - The list of neurons.public void setActivationFactory(ActivationFactory factory)
factory - The activation factory.public ActivationFactory getActivationFactory()
public Network buildNetwork()
throws DuplicateNeuronException
DuplicateNeuronException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||