public static NeuralNetwork readFrom(String filename) throws IOException, ClassNotFoundException {
  ObjectInputStream ois=new ObjectInputStream(new FileInputStream(filename));
  NeuralNetwork net=(NeuralNetwork)ois.readObject();
  ois.close();
  return net;
}

public static NeuralNetwork readFrom ( String filename ) throws IOException , ClassNotFoundException { ObjectInputStream ois = new ObjectInputStream ( new FileInputStream ( filename ) ) ; NeuralNetwork net = ( NeuralNetwork ) ois . readObject ( ) ; ois . close ( ) ; return net ; }
method which reads and returns a network from the given file
