@raises(ValueError)
def test_conditional_requires_nested_mlp():
 mlp = MLP(nvis=10, layers=[Linear(layer_name='h', dim=10, irange=0.01)])
 Conditional(mlp=mlp, name='conditional')

@ raises ( ValueError ) def test_conditional_requires_nested_mlp ( ) : mlp = MLP ( nvis = 10 , layers = [ Linear ( layer_name = 'h' , dim = 10 , irange = 0.01 ) ] ) Conditional ( mlp = mlp , name = 'conditional' )
conditional rejects non-nested mlps .