Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/pylearn2-HEAD/pylearn2/training_algorithms/tests/test_default.py   pylearn2(Download)
 
    algorithm.setup(model=model, dataset=train)
    algorithm.train(dataset=train)
 
def test_unspecified_batch_size():

src/p/y/pylearn2-HEAD/pylearn2/tests/test_monitor.py   pylearn2(Download)
            e_step = E_Step( h_new_coeff_schedule = [ 1. ]))
    algorithm.setup(model = model, dataset = dataset)
    algorithm.train(dataset = dataset)
    if not ( model.monitor.get_batches_seen() == BATCHES):
        raise AssertionError('Should have seen '+str(BATCHES) + \

src/p/y/pylearn2-HEAD/pylearn2/models/tests/test_rbm.py   pylearn2(Download)
    trainer = DefaultTrainingAlgorithm(batch_size=1)
    trainer.setup(rbm, train)
    trainer.train(train)