Documentation of 'org.nd4j.linalg.util.FeatureUtil' Java class
FeatureUtil
org.nd4j.linalg.util

Class FeatureUtil



  • public class FeatureUtil
    extends java.lang.Object
    Feature matrix related utils
    • Constructor Summary

      Constructors 
      Constructor and Description
      FeatureUtil() 
    • Constructor Detail

      • FeatureUtil

        public FeatureUtil()
    • Method Detail

      • toOutcomeVector

        public static INDArray toOutcomeVector(int index,
                                               int numOutcomes)
        Creates an out come vector from the specified inputs
        Parameters:
        index - the index of the label
        numOutcomes - the number of possible outcomes
        Returns:
        a binary label matrix used for supervised learning
      • toOutcomeMatrix

        public static INDArray toOutcomeMatrix(int[] index,
                                               int numOutcomes)
        Creates an out come vector from the specified inputs
        Parameters:
        index - the index of the label
        numOutcomes - the number of possible outcomes
        Returns:
        a binary label matrix used for supervised learning
      • normalizeMatrix

        public static void normalizeMatrix(INDArray toNormalize)
      • scaleByMax

        public static void scaleByMax(INDArray toScale)
        Divides each row by its max
        Parameters:
        toScale - the matrix to divide by its row maxes

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.