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 void |
scaleMinMax(double min,
double max,
INDArray toScale)
Scales the ndarray columns
to the given min/max values
|
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 maxespublic static void scaleMinMax(double min, double max, INDArray toScale)
min
- the minimum numbermax
- the max numberCopyright © 2016. All Rights Reserved.