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

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/p/y/pylearn2-HEAD/pylearn2/scripts/tests/test_autoencoder.py   pylearn2(Download)
import numpy as np
import os
from pylearn2.scripts.tests.yaml_testing import limited_epoch_train
import pylearn2
 
def test_hcae_yaml():
    limited_epoch_train(os.path.join(pylearn2.__path__[0],"scripts/autoencoder_example/hcae.yaml"))
 
def test_dae_yaml():
    limited_epoch_train(os.path.join(pylearn2.__path__[0],"scripts/autoencoder_example/dae.yaml"))

src/p/y/pylearn2-HEAD/pylearn2/scripts/papers/dropout/tests/test_dropout.py   pylearn2(Download)
 
import os
from pylearn2.scripts.tests.yaml_testing import limited_epoch_train
from pylearn2.testing.skip import skip_if_no_data
 
 
    skip_if_no_data()
    limited_epoch_train(os.path.join(yaml_file_path, 'mnist_valid.yaml'))
    try:
        os.remove(os.path.join(save_path, 'mnist_valid.pkl'))
 
    skip_if_no_data()
    limited_epoch_train(os.path.join(yaml_file_path, 'mnist.yaml'))
    try:
        os.remove(os.path.join(save_path, 'mnist.pkl'))