src/core/network/Persistence.java
public static void saveNeuralNetwork(String filename, NeuralNetwork neuralNetwork) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream(filename + ".ser");
        ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);
        objectOutputStream.writeObject(neuralNetwork);
        objectOutputStream.flush();
        objectOutputStream.close();
    }
/**
     * Saves neural network into file.
     *
     * @param filename file name into which persistent neural network data is to be stored.
     * @param neuralNetwork reference to neural network instance to be made persistent.
     * @throws IOException throws exception if serialization of neural network object into file fails.
     */
Saves neural network into file.
@param filename file name into which persistent neural network data is to be stored.
@param neuralNetwork reference to neural network instance to be made persistent.
@throws IOException throws exception if serialization of neural network object into file fails.
Saves neural network into file . @param filename file name into which persistent neural network data is to be stored . @param neuralNetwork reference to neural network instance to be made persistent . @throws IOException throws exception if serialization of neural network object into file fails .
public static void saveNeuralNetwork(String filename, NeuralNetwork neuralNetwork) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream(filename + ".ser");
        ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);
        objectOutputStream.writeObject(neuralNetwork);
        objectOutputStream.flush();
        objectOutputStream.close();
    }
public static void saveNeuralNetwork ( String filename , NeuralNetwork neuralNetwork ) throws IOException { FileOutputStream fileOutputStream = new FileOutputStream ( filename + ".ser" ) ; ObjectOutputStream objectOutputStream = new ObjectOutputStream ( fileOutputStream ) ; objectOutputStream . writeObject ( neuralNetwork ) ; objectOutputStream . flush ( ) ; objectOutputStream . close ( ) ; }
Saves neural network into file.
Saves neural network into file .