java.lang.Object
com.marginallyclever.ro3.node.nodes.odenode.brain.v2.Brain

public class Brain extends Object
  • Constructor Details

  • Method Details

    • setNumInputs

      public void setNumInputs(int numInputs)
    • setNumOutputs

      public void setNumOutputs(int numOutputs)
    • createInitialConnections

      public void createInitialConnections()
    • setInputs

      public void setInputs(List<Double> inputs)
    • train

      public void train(List<Double> inputs, List<Double> expectedOutputs)
      Train the network with a set of inputs and expected outputs
      Parameters:
      inputs - List of input values
      expectedOutputs - List of expected output values
    • propagate

      public void propagate()
    • getOutput

      public double getOutput(int index)
    • findActiveConnections

      public List<Connection> findActiveConnections()
    • resetNetwork

      public void resetNetwork()
    • resetNeurons

      public void resetNeurons()
    • resetConnections

      public void resetConnections()
    • addNeuron

      public void addNeuron(Neuron neuron)
    • addConnection

      public void addConnection(Connection connection)
    • getInputNeurons

      public List<Neuron> getInputNeurons()
    • getOutputNeurons

      public List<Neuron> getOutputNeurons()
    • getConnections

      public List<Connection> getConnections()
    • toJSON

      public org.json.JSONObject toJSON()
    • setInput

      public void setInput(int i, double value)
    • fromJSON

      public void fromJSON(org.json.JSONObject json)