Making paths more stable
Error check. Cannot train on empty set
Cleaning up bulky code