model.py train_thresh bugfix
model.py train_thresh bugfix

two bugs fixed here:

 - wasn't passing train_thresh from main to train_model

 - wasn't correctly checking against train_thresh for the stopping
   condition

billbrod/spatial-frequency-preferences,billbrod/spatial-frequency-preferences,billbrod/spatial-frequency-preferences