Skip to content

Instantly share code, notes, and snippets.

@reuschling
reuschling / 0_feature.csv
Created July 31, 2018 12:38
BatchNormalization: Gist for showing an issue with an 1D CNN on timeseries data that leads to an IllegalStateException: Invalid input type: Batch norm layer expected input of type CNN, CNN Flat or FF, got InputTypeRecurrent(128,timeSeriesLength=23) for layer index 1, layer name = layer1
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1
1
1
1
1
1
1
1
1
1
@reuschling
reuschling / SequenceRegressionIssue.java
Created January 15, 2018 14:41
Small application that shows an error in dl4j regarding TBPTT in 0.9.2-snapshot
package dfki.sds.servicefactory.deeplearning;
import java.io.File;
import org.datavec.api.records.reader.SequenceRecordReader;
import org.datavec.api.records.reader.impl.csv.CSVSequenceRecordReader;
import org.datavec.api.split.NumberedFileInputSplit;
import org.deeplearning4j.datasets.datavec.SequenceRecordReaderDataSetIterator;
@reuschling
reuschling / UCISequenceClassificationExampleWithEval.java
Created January 3, 2018 15:25
Origin dl4j UCISequenceClassificationExample with additional code to perfom a classification. The classification is verified by reconstructing the Evaluation class confusion matrix. During this, there are two errors: 1. normalizer.transform has to be double invocated. 2. Evaluation class shows wrong number of featues (sum is bigger than test cas…
package dfki.sds.servicefactory.deeplearning;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;