Now shuffle=True is default
Standalone training script
Fix nan problem