Help with encoding target arrays.
Try to work around spurious errors here
Add initial version for sklearn wrapper for nntools.