evaluateWithNewInput(input) {

    // update input neurons
    for (var i=0; i<this.layers[0]; i++) {
      if  (i < input.length)
        this.neurons[0][i].update(input[i], input[i]); // no actication function on input nodes
      else
        this.neurons[0][i].update(0.0, 0.0); // unspecified input, set to 0
    }

    this.computeNonInputLayers();
  }
/**
   * Assing the given values to the input neurons and updates all layers
   * consequently.
   */
Assing the given values to the input neurons and updates all layers
consequently.
Assing the given values to the input neurons and updates all layers consequently .
evaluateWithNewInput(input) {
    for (var i=0; i<this.layers[0]; i++) {
      if  (i < input.length)
        this.neurons[0][i].update(input[i], input[i]); 
      else
        this.neurons[0][i].update(0.0, 0.0); 
    }
    this.computeNonInputLayers();
  }
evaluateWithNewInput ( input ) { for ( var i = 0 ; i < this . layers [ 0 ] ; i ++ ) { if ( i < input . length ) this . neurons [ 0 ] [ i ] . update ( input [ i ] , input [ i ] ) ; else this . neurons [ 0 ] [ i ] . update ( 0.0 , 0.0 ) ; } this . computeNonInputLayers ( ) ; }
Assing the given values to the input neurons and updates all layers
 consequently.
Assing the given values to the input neurons and updates all layers consequently .
// update input neurons // no actication function on input nodes // unspecified input, set to 0