public class FeatureUtil extends Object
Constructor and Description |
---|
FeatureUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
normalizeMatrix(INDArray toNormalize) |
static void |
scaleByMax(INDArray toScale)
Divides each row by its max
|
static INDArray |
toOutcomeMatrix(int[] index,
int numOutcomes)
Creates an out come vector from the specified inputs
|
static INDArray |
toOutcomeVector(int index,
int numOutcomes)
Creates an out come vector from the specified inputs
|
public static INDArray toOutcomeVector(int index, int numOutcomes)
index
- the index of the labelnumOutcomes
- the number of possible outcomespublic static INDArray toOutcomeMatrix(int[] index, int numOutcomes)
index
- the index of the labelnumOutcomes
- the number of possible outcomespublic static void normalizeMatrix(INDArray toNormalize)
public static void scaleByMax(INDArray toScale)
toScale
- the matrix to divide by its row maxesCopyright © 2014. All Rights Reserved.