src/core/network/Persistence.java
public void cycle() throws IOException {
        if (!snapshot) return;
        count++;
        totalCount++;
        if (count >= interval) {
            String currentFilename = filename;
            if (!overwrite) currentFilename += "-"+ totalCount;
            if (filename != null) saveNeuralNetwork(currentFilename, neuralNetwork);
            count = 0;
        }
    }
/**
     * Cycle function for regular storing of snapshots.
     *
     * @throws IOException throws exception if serialization of neural network object into file fails.
     */
Cycle function for regular storing of snapshots.
@throws IOException throws exception if serialization of neural network object into file fails.
Cycle function for regular storing of snapshots . @throws IOException throws exception if serialization of neural network object into file fails .
public void cycle() throws IOException {
        if (!snapshot) return;
        count++;
        totalCount++;
        if (count >= interval) {
            String currentFilename = filename;
            if (!overwrite) currentFilename += "-"+ totalCount;
            if (filename != null) saveNeuralNetwork(currentFilename, neuralNetwork);
            count = 0;
        }
    }
public void cycle ( ) throws IOException { if ( ! snapshot ) return ; count ++ ; totalCount ++ ; if ( count >= interval ) { String currentFilename = filename ; if ( ! overwrite ) currentFilename += "-" + totalCount ; if ( filename != null ) saveNeuralNetwork ( currentFilename , neuralNetwork ) ; count = 0 ; } }
Cycle function for regular storing of snapshots.
Cycle function for regular storing of snapshots .