Skip to content

Commit

Permalink
fix subsampling layer layer factory type
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gibson committed May 18, 2015
1 parent 42df413 commit 6e03726
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,13 @@ public ListBuilder hiddenLayerSizes(int...hiddenLayerSizes) {
return this;
}

/**
* Build the multi layer network
* based on this neural network and
* overr ridden parameters
* @return the configuration to build
*/
public MultiLayerConfiguration build() {
if(layerwise.size() != hiddenLayerSizes.length + 1)
throw new IllegalStateException("Number of hidden layers mut be equal to hidden layer sizes + 1");

List<NeuralNetConfiguration> list = new ArrayList<>();
for(int i = 0; i < layerwise.size(); i++) {
if(confOverrides.get(i) != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.deeplearning4j.nn.api.LayerFactory;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplearning4j.nn.conf.layers.*;
import org.deeplearning4j.nn.layers.convolution.subsampling.SubsamplingLayer;

/**
* Static method for finding which layer factory to use
Expand Down

0 comments on commit 6e03726

Please sign in to comment.