This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder() | |
| .seed(rngSeed) //Random number generator seed for improved repeatability. Optional. | |
| .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT).iterations(1) | |
| .weightInit(WeightInit.XAVIER) | |
| .updater(Updater.NESTEROVS).momentum(0.9) | |
| .learningRate(0.005) | |
| .gradientNormalization(GradientNormalization.ClipElementWiseAbsoluteValue) //Not always required, but helps with this data set | |
| .gradientNormalizationThreshold(0.5) | |
| .list() | |
| .layer(0, new Convolution1DLayer.Builder(5, 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder() | |
| .seed(rngSeed) //Random number generator seed for improved repeatability. Optional. | |
| .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT).iterations(1) | |
| .weightInit(WeightInit.XAVIER) | |
| .updater(Updater.NESTEROVS).momentum(0.9) | |
| .learningRate(0.005) | |
| .gradientNormalization(GradientNormalization.ClipElementWiseAbsoluteValue) //Not always required, but helps with this data set | |
| .gradientNormalizationThreshold(0.5) | |
| .list() | |
| .layer(0, new ConvolutionLayer.Builder(5, 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 18.805069 | |
| 20.349251 | |
| 19.806794 | |
| 21.240426 | |
| 22.389032 | |
| 22.148030 | |
| 24.010619 | |
| 26.063022 | |
| 24.489686 | |
| 26.680729 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.lcpt; | |
| import org.datavec.api.io.labels.ParentPathLabelGenerator; | |
| import org.datavec.api.records.listener.impl.LogRecordListener; | |
| import org.datavec.api.records.reader.RecordReader; | |
| import org.datavec.api.records.reader.SequenceRecordReader; | |
| import org.datavec.api.records.reader.impl.csv.CSVRecordReader; | |
| import org.datavec.api.records.reader.impl.csv.CSVSequenceRecordReader; | |
| import org.datavec.api.split.FileSplit; | |
| import org.datavec.api.split.NumberedFileInputSplit; |