Skip to content

Instantly share code, notes, and snippets.

@agibsonccc
Created August 5, 2014 15:15
Show Gist options
  • Save agibsonccc/4c8dbc51b68cfa202335 to your computer and use it in GitHub Desktop.
Save agibsonccc/4c8dbc51b68cfa202335 to your computer and use it in GitHub Desktop.
package org.deeplearning4j.example.classification.labels;
import org.jblas.DoubleMatrix;
import org.deeplearning4j.util.*;
import java.util.Arrays;
import java.util.List;
/**
* Created by agibsonccc on 8/5/14.
*/
public class LabelsExample {
public static void main(String[] args) {
List<String> myLabels = Arrays.asList("1","2");
DoubleMatrix labelMatrix = MatrixUtil.toOutcomeVector(0,myLabels.size());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment