Created
August 5, 2014 15:15
-
-
Save agibsonccc/4c8dbc51b68cfa202335 to your computer and use it in GitHub Desktop.
This file contains 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 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