def test_conv_tanh_basic():
 yaml_file = os.path.join(pylearn2.__path__[0], 'models/tests/conv_elemwise_tanh.yaml')
 with open(yaml_file) as yamlh:
  yaml_lines = yamlh.readlines()
  yaml_str = ''.join(yaml_lines)
 train = yaml_parse.load(yaml_str)
 train.main_loop()

def test_conv_tanh_basic ( ) : yaml_file = os . path . join ( pylearn2 . __path__ [ 0 ] , 'models/tests/conv_elemwise_tanh.yaml' ) with open ( yaml_file ) as yamlh : yaml_lines = yamlh . readlines ( ) yaml_str = '' . join ( yaml_lines ) train = yaml_parse . load ( yaml_str ) train . main_loop ( )
tests that we can load a convolutional tanh model and train it for a few epochs on a dummy dataset-- tiny model and dataset .