implement automated training
Merge branch 'ml_detectpeaks' of https://github.com/openconnectome/alignment into ml_detectpeaks