def test_dcae():
 ae = Autoencoder(5, 7, act_enc='tanh', act_dec='cos', tied_weights=True)
 model = DeepComposedAutoencoder([ae])
 model._ensure_extensions()
 data = np.random.randn(10, 5).astype(config.floatX)
 model.perform(data)

def test_dcae ( ) : ae = Autoencoder ( 5 , 7 , act_enc = 'tanh' , act_dec = 'cos' , tied_weights = True ) model = DeepComposedAutoencoder ( [ ae ] ) model . _ensure_extensions ( ) data = np . random . randn ( 10 , 5 ) . astype ( config . floatX ) model . perform ( data )
tests that deepcomposedautoencoder works correctly .