Created
April 24, 2017 08:37
-
-
Save bikashg/0e1e4b15d4e815c04b7d1be79892d477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArrayList<Thread> myThreads = new ArrayList<Thread>(); | |
for each epoch { | |
net.fit(trainSplitDataSetIterator); | |
Thread t = new Thread(new MYClass(net)); // The MYClass will use net to calculate some scores; it doesn't modify/update net | |
myThreads.add(t); | |
t.start(); | |
} | |
for (Thread t:myThreads) { | |
t.join(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment