src/main/java/org/sv4j/core/NeuralTraining.java
/**
     * Training NeuralNetwork
     * @param epochs number of epochs
     */
Training NeuralNetwork
@param epochs number of epochs
Training NeuralNetwork @param epochs number of epochs
public void training(int epochs) {
        log.info("Training Neural Network");
        DataSetIterator trainIter = getDataSetIterator(true,_WordVec , batchSize, truncateReviewsToLength, rng);
        DataSetIterator testIter = getDataSetIterator(false, _WordVec, batchSize, truncateReviewsToLength, rng);
        for (int i = 0; i < epochs; i++) {
            _MultiLayerNetwork.fit(trainIter);
        }
        System.out.println("Starting Evaluation:");
        Evaluation evaluation = _MultiLayerNetwork.evaluate(testIter);
        System.out.println(evaluation.stats());
    }
public void training ( int epochs ) { log . info ( "Training Neural Network" ) ; DataSetIterator trainIter = getDataSetIterator ( true , _WordVec , batchSize , truncateReviewsToLength , rng ) ; DataSetIterator testIter = getDataSetIterator ( false , _WordVec , batchSize , truncateReviewsToLength , rng ) ; for ( int i = 0 ; i < epochs ; i ++ ) { _MultiLayerNetwork . fit ( trainIter ) ; } System . out . println ( "Starting Evaluation:" ) ; Evaluation evaluation = _MultiLayerNetwork . evaluate ( testIter ) ; System . out . println ( evaluation . stats ( ) ) ; }
Training NeuralNetwork
 @param epochs number of epochs
Training NeuralNetwork @param epochs number of epochs