code: def build_trainer(nn, ds, verbosity=1):
      
      return pb.supervised.trainers.rprop.RPropMinusTrainer(nn, dataset=ds, batchlearning=True, verbose=bool(verbosity))
docs: Configure neural net trainer from a pybrain dataset