Skip to content

Commit

Permalink
Various test config fixes (input validation)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDBlack committed May 2, 2016
1 parent fc345d1 commit 67b2819
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void testConvnetJson() {
MultiLayerConfiguration.Builder builder = new NeuralNetConfiguration.Builder()
.seed(seed)
.iterations(iterations).regularization(true)
.l1(1e-1).l2(2e-4).useDropConnect(true)
.l1(1e-1).l2(2e-4).useDropConnect(true).dropOut(0.5)
.miniBatch(true)
.optimizationAlgo(OptimizationAlgorithm.CONJUGATE_GRADIENT)
.list()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void testDenseToOutputLayer() {
MultiLayerConfiguration.Builder builder = new NeuralNetConfiguration.Builder()
.seed(seed)
.iterations(iterations).regularization(true)
.l1(1e-1).l2(2e-4).useDropConnect(true)
.l1(1e-1).l2(2e-4).useDropConnect(true).dropOut(0.5)
.miniBatch(true)
.optimizationAlgo(OptimizationAlgorithm.CONJUGATE_GRADIENT)
.list()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.deeplearning4j.nn.api.OptimizationAlgorithm;
import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;
import org.deeplearning4j.nn.conf.Updater;
import org.deeplearning4j.nn.conf.inputs.InvalidInputTypeException;
import org.deeplearning4j.nn.conf.layers.ConvolutionLayer;
import org.deeplearning4j.nn.conf.layers.DenseLayer;
Expand Down Expand Up @@ -49,8 +50,8 @@ public void testTwdFirstLayer() throws Exception {
.optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)
.l2(2e-4)
.regularization(true)
.momentum(0.9)
.useDropConnect(true)
.momentum(0.9).updater(Updater.NESTEROVS)
.useDropConnect(true).dropOut(0.5)
.list()
.layer(0, new ConvolutionLayer.Builder(8, 8) //16 filters kernel size 8 stride 4
.stride(4, 4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class ImageLSTMTest {
// TODO finish building out this test for image LSTM ...
private static final Logger log = LoggerFactory.getLogger(ImageLSTMTest.class);

@Ignore
@Test
public void testTraffic() {
NeuralNetConfiguration conf = new NeuralNetConfiguration.Builder()
Expand Down Expand Up @@ -109,6 +110,7 @@ public void testLSTMActivateResultsContained() {

//////////////////////////////////////////////////////////////////////////////////

@Ignore
@Test
public void testBackpropResultsContained() {
INDArray input = getContainedData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ private static MultiLayerConfiguration getIrisMLPSimpleConfig(int[] hiddenLayerS
.learningRate(0.1).updater(Updater.SGD)
.optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)
.regularization(false)
.l1(0.0)
.l2(0.0)
.momentum(0.0)
.seed(12345L)
.list();

Expand Down

0 comments on commit 67b2819

Please sign in to comment.