@Test public void testGetWeigts(){ double[] weights = neuron.getWeights(); assertTrue(weights[0] != TEST_DOUBLE_VALUE); weights[0] = TEST_DOUBLE_VALUE; assertEquals("Neuron weight does not have expected value", TEST_DOUBLE_VALUE, neuron.getWeights()[0], 0); }
public double[] getWeights() { return inputWeights; }
Neuron implements Serializable { public double[] getWeights() { return inputWeights; } }
Neuron implements Serializable { public double[] getWeights() { return inputWeights; } Neuron(final ActivationFunction function, int inputDim, double biasValue);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Random random);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Collection<Neuron> nextNeurons); }
Neuron implements Serializable { public double[] getWeights() { return inputWeights; } Neuron(final ActivationFunction function, int inputDim, double biasValue);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Random random);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Collection<Neuron> nextNeurons); ActivationFunction getActivationFunction(); double[] getWeights(); double getError(); void setError(double error); double[] getDeltas(); double processInput(final double[] inputs); double getOutput(); double getNeuronInput(); double getBiasInput(); boolean addNeuron(Neuron neuron); boolean addAllNeurons(Collection<Neuron> neurons); boolean removeNeuron(Neuron neuron); void reset(); }
Neuron implements Serializable { public double[] getWeights() { return inputWeights; } Neuron(final ActivationFunction function, int inputDim, double biasValue);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Random random);  Neuron(final ActivationFunction function, int inputDim, double biasValue, final Collection<Neuron> nextNeurons); ActivationFunction getActivationFunction(); double[] getWeights(); double getError(); void setError(double error); double[] getDeltas(); double processInput(final double[] inputs); double getOutput(); double getNeuronInput(); double getBiasInput(); boolean addNeuron(Neuron neuron); boolean addAllNeurons(Collection<Neuron> neurons); boolean removeNeuron(Neuron neuron); void reset();  }