Skip to content

Instantly share code, notes, and snippets.

@lahwran
Created June 15, 2015 17:01
Show Gist options
  • Select an option

  • Save lahwran/8f192228c6a40d761c74 to your computer and use it in GitHub Desktop.

Select an option

Save lahwran/8f192228c6a40d761c74 to your computer and use it in GitHub Desktop.
layer_defs = [];
layer_defs.push({type:'input', out_sx:28, out_sy:28, out_depth:1});
layer_defs.push({type:'conv', sx:5, filters:8, stride:2, pad:2, activation:'tanh'});
layer_defs.push({type:'fc', num_neurons:20, activation:'tanh'});
layer_defs.push({type:'fc', num_neurons:50, activation:'tanh'});
layer_defs.push({type:'fc', num_neurons:4, activation:'tanh'});
layer_defs.push({type:'fc', num_neurons:10, activation:'tanh'});
layer_defs.push({type:'fc', num_neurons:50, activation:'tanh'});
layer_defs.push({type:'fc', num_neurons:50, activation:'tanh'});
layer_defs.push({type:'regression', num_neurons:28*28});
net = new convnetjs.Net();
net.makeLayers(layer_defs);
trainer = new convnetjs.SGDTrainer(net, {learning_rate:1, method:'adadelta', batch_size:50, l2_decay:0.001, l1_decay:0.001});
This file has been truncated, but you can view the full file.
@lahwran
Copy link
Author

lahwran commented Jun 15, 2015

parameters for http://cs.stanford.edu/people/karpathy/convnetjs/demo/autoencoder.html - I mucked with the layers too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment