Class Brain
java.lang.Object
com.marginallyclever.ro3.node.nodes.odenode.brain.v2.Brain
-
Constructor Summary
ConstructorDescriptionBrain
(DopamineSimulator dopamineSimulator, CortisolSimulator cortisolSimulator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConnection
(Connection connection) void
void
void
fromJSON
(org.json.JSONObject json) double
getOutput
(int index) void
void
void
void
void
setInput
(int i, double value) void
void
setNumInputs
(int numInputs) void
setNumOutputs
(int numOutputs) org.json.JSONObject
toJSON()
void
Train the network with a set of inputs and expected outputs
-
Constructor Details
-
Brain
-
-
Method Details
-
setNumInputs
public void setNumInputs(int numInputs) -
setNumOutputs
public void setNumOutputs(int numOutputs) -
createInitialConnections
public void createInitialConnections() -
setInputs
-
train
Train the network with a set of inputs and expected outputs- Parameters:
inputs
- List of input valuesexpectedOutputs
- List of expected output values
-
propagate
public void propagate() -
getOutput
public double getOutput(int index) -
findActiveConnections
-
resetNetwork
public void resetNetwork() -
resetNeurons
public void resetNeurons() -
resetConnections
public void resetConnections() -
addNeuron
-
addConnection
-
getInputNeurons
-
getOutputNeurons
-
getConnections
-
toJSON
public org.json.JSONObject toJSON() -
setInput
public void setInput(int i, double value) -
fromJSON
public void fromJSON(org.json.JSONObject json)
-