def test_train_cv():
 skip_if_no_sklearn()
 (handle, layer0_filename) = tempfile.mkstemp()
 (handle, layer1_filename) = tempfile.mkstemp()
 (handle, layer2_filename) = tempfile.mkstemp()
 trainer = yaml_parse.load((test_yaml_layer0 % {'layer0_filename': layer0_filename}))
 trainer.main_loop()
 trainer = yaml_parse.load((test_yaml_layer1 % {'layer0_filename': layer0_filename, 'layer1_filename': layer1_filename}))
 trainer.main_loop()
 trainer = yaml_parse.load((test_yaml_layer2 % {'layer0_filename': layer0_filename, 'layer1_filename': layer1_filename, 'layer2_filename': layer2_filename}))
 trainer.main_loop()
 trainer = yaml_parse.load((test_yaml_layer3 % {'layer0_filename': layer0_filename, 'layer1_filename': layer1_filename, 'layer2_filename': layer2_filename}))
 trainer.main_loop()
 os.remove(layer0_filename)
 os.remove(layer1_filename)

def test_train_cv ( ) : skip_if_no_sklearn ( ) ( handle , layer0_filename ) = tempfile . mkstemp ( ) ( handle , layer1_filename ) = tempfile . mkstemp ( ) ( handle , layer2_filename ) = tempfile . mkstemp ( ) trainer = yaml_parse . load ( ( test_yaml_layer0 % { 'layer0_filename' : layer0_filename } ) ) trainer . main_loop ( ) trainer = yaml_parse . load ( ( test_yaml_layer1 % { 'layer0_filename' : layer0_filename , 'layer1_filename' : layer1_filename } ) ) trainer . main_loop ( ) trainer = yaml_parse . load ( ( test_yaml_layer2 % { 'layer0_filename' : layer0_filename , 'layer1_filename' : layer1_filename , 'layer2_filename' : layer2_filename } ) ) trainer . main_loop ( ) trainer = yaml_parse . load ( ( test_yaml_layer3 % { 'layer0_filename' : layer0_filename , 'layer1_filename' : layer1_filename , 'layer2_filename' : layer2_filename } ) ) trainer . main_loop ( ) os . remove ( layer0_filename ) os . remove ( layer1_filename )
test traincv class .