add a train_flag to control whether or not to set trained to TRUE

In some special circumstances (like the stagerunner used for the data stage in a syberia model) we should never be able to access the predict functions (i.e., so that we can keep testing training).