Created
April 24, 2017 08:38
-
-
Save bikashg/84ddeb0eb07b28a3b5961eaeb9d77e28 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