Try using 'null' without quotation marks. It's a YAML keyword, not a
string, and shouldn't be quoted or capitalized.

On Tuesday, April 22, 2014, woodshop <notifications@github.com> wrote:

> In pylearn2/config/yaml_parse.py:
>
> >      mapping = loader.construct_mapping(node)
> > +
> > +    assert hasattr(mapping, 'keys')
> > +    assert hasattr(mapping, 'values')
> > +    for key, val in mapping.iteritems():
>
> Hello,
>
> I'm not sure if this is the correct place to leave a comment. If it is
> isn't, I apologize.
>
> When instantiating autoencoder.DenoisingAutoencoder, the class requires a
> value associated with the variable 'act_dec'. If I'd like to specify a
> linear decoding function, then I must pass None using "Null" via yaml.
> However these lines throw an error since the yaml parser won't accept None
> as a dict keyword value. I expect there are other locations in pylearn2
> where one would legitimately like to pass None via their yaml source.
>
> --Andy
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/lisa-lab/pylearn2/pull/705/files#r11884983>
> .
>


-- 
Sent from my phone.