Skip to content

Instantly share code, notes, and snippets.

View sid-sahani's full-sized avatar

Siddharth Sahani sid-sahani

  • Infocusp
  • Ahmedabad
View GitHub Profile
@sid-sahani
sid-sahani / Performance Scores
Created September 24, 2016 10:35
Hello folks, I had a doubt concerning my CNN model's Results. In the 4th epoch I get these scores:
Epoch 4:
Examples labeled as 0 classified by model as 0: 14 times
Examples labeled as 0 classified by model as 1: 19 times
Examples labeled as 1 classified by model as 0: 4 times
Examples labeled as 1 classified by model as 1: 29 times
==========================Scores=====================================
Accuracy: 0.6515
Precision: 0.691
package org.deeplearning4j.examples.convolution;
import com.google.common.collect.Lists;
import org.datavec.api.records.reader.RecordReader;
import org.datavec.api.records.reader.impl.csv.CSVRecordReader;
import org.datavec.api.split.FileSplit;
import org.deeplearning4j.datasets.datavec.RecordReaderDataSetIterator;
import org.deeplearning4j.datasets.iterator.impl.ListDataSetIterator;
import org.deeplearning4j.eval.Evaluation;
import org.deeplearning4j.nn.api.OptimizationAlgorithm;
nisarg@neville-PC MSYS ~
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-extra-cmake-modules make pkg-config grep sed gzip tar mingw64/mingw-w64-x86_64-openblas mingw-w64-x86_64-lz4 make-modules make pkg-config grep sed gzip tar mingw64/mingw-w64-x86_64-openblas mingw-w64-x86_64-lz4
warning: grep-2.22-3 is up to date -- reinstalling
warning: sed-4.2.2-2 is up to date -- reinstalling
warning: gzip-1.7-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: mingw-w64-x86_64-gcc-libgfortran will be installed before its mingw-w64 -x86_64-gcc-libs dependency
Trying epoch 6
*** Completed epoch {} ***6
Evaluate model....
Predicted: 0 1
Actual:
0 N/A | 32 55
1 ModelName | 12 75