No constructor in yaml for StackedDenoisingAutoencoder

17 views
Skip to first unread message

Isaac Gerg

unread,
Nov 10, 2015, 9:28:22 PM11/10/15
to pylearn-dev
Trying this:

    model: 
        !obj.pylearn2.models.StackedDenoisingAutoencoder {
        autoencoders : [
            !obj:pylearn2.models.autoencoder.Autoencoder {
                nvis : 1296,
                nhid : 3000,
                act_enc: 'sigmoid',
                act_dec: null,
                tied_weights : 'False' } ],
        corruptor: !obj.pylearn2.corruption.DropoutCorruptor { corruption_level : 0.5}
                
    },

But am getting told 

yaml.constructor.ConstructorError: could not determine a constructor for the tag '!obj.pylearn2.models.StackedDenoisingAutoencoder'
in "<string>", line 26, column 9:
!obj.pylearn2.models.StackedDeno ...


Sounds like there is no registered constructor in yaml for StackedDenoisingAutoencoder.

Isaac

Pascal Lamblin

unread,
Nov 11, 2015, 7:44:44 PM11/11/15
to pylea...@googlegroups.com
This should be !obj:pylearn2.... with a ":" after "!obj", not a ".".
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "pylearn-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pylearn-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Pascal

Isaac Gerg

unread,
Nov 12, 2015, 12:24:19 PM11/12/15
to pylearn-dev
Thanks for that catch Pascal, this fixed my issue.

It seems that show_weights.py doesnt work for pkl files generated from StackedDenoisingAutoencoder.  Is this correct?  How do I visualize the weights?

Isaac
Reply all
Reply to author
Forward
0 new messages