/** Returns a deep clone of this learning algorithm. */ public Object clone() { SparseMIRA clone = null; try { clone = (SparseMIRA) super.clone(); } catch (Exception e) { System.err.println("Error cloning SparseMIRA: " + e); e.printStackTrace(); System.exit(1); } int N = network.size(); clone.network = new OVector(N); for (int i = 0; i < N; ++i) clone.network.add(((BiasedRandomWeightVector) network.get(i)).clone()); return clone; }