def test_bernoulli_vector_default_output_layer():
 mlp = MLP(layers=[Linear(layer_name='h', dim=5, irange=0.01, max_col_norm=0.01)])
 conditional = BernoulliVector(mlp=mlp, name='conditional')
 vae = DummyVAE()
 conditional.set_vae(vae)
 input_space = VectorSpace(dim=5)
 conditional.initialize_parameters(input_space=input_space, ndim=5)

def test_bernoulli_vector_default_output_layer ( ) : mlp = MLP ( layers = [ Linear ( layer_name = 'h' , dim = 5 , irange = 0.01 , max_col_norm = 0.01 ) ] ) conditional = BernoulliVector ( mlp = mlp , name = 'conditional' ) vae = DummyVAE ( ) conditional . set_vae ( vae ) input_space = VectorSpace ( dim = 5 ) conditional . initialize_parameters ( input_space = input_space , ndim = 5 )
bernoullivectors default output layer is compatible with its required output space .