def test_dcae():
    """
    Tests that DeepComposedAutoencoder calls the Model superclass constructor
    """
    ae = Autoencoder(5, 7, act_enc='tanh', act_dec='cos',
                     tied_weights=True)
    model = DeepComposedAutoencoder([ae])
    model._ensure_extensions()
Beispiel #2
0
def test_dcae():
    """
    Tests that DeepComposedAutoencoder works correctly
    """
    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():
    """
    Tests that DeepComposedAutoencoder works correctly
    """
    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)