WIP towards fixing memory leak.
Fix memory leak for adapted labels during scoring.
Fix stratified sampling when there's no examples of a class in the training data.
Can happen on small data in combination with cross-validation (or other splitting).
Code cleanup.
Add JUnit testing for cross-validation, and down/over sampling of training/testing.
Revert back to using 3 nodes in JUnitRunnerDebug.
Add Mid-size test, only active for nightly tests. Disabled from ./build.sh.
Merge branch 'master' into arno-deeplearning2
Fix memory leak.