Documentation of 'Catalano.MachineLearning.Codification' Java class
Codification
Catalano.MachineLearning

Class Codification



  • public class Codification
    extends java.lang.Object
    Convert the string dataset for symbolic integers.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Codification(java.lang.String[] columnNames, java.lang.String[][] labels)
      Initializes a new instance of the ConfusionMatrix class.
      Codification(java.lang.String columnName, java.lang.String[] labels)
      Initializes a new instance of the Codification class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName(java.lang.String columnName, int symbol)
      Get the name from the symbol.
      void setData(java.lang.String[] columnNames, java.lang.String[][] labels)
      Set the data for codification.
      void setData(java.lang.String columnName, java.lang.String[] labels)
      Set the data for codification.
      int Translate(java.lang.String columnName, java.lang.String name)
      Get the specified symbol from the name.
      int[] Translate(java.lang.String columnName, java.lang.String[] labels)
      Convert labels to symbols.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Codification

        public Codification(java.lang.String columnName,
                            java.lang.String[] labels)
        Initializes a new instance of the Codification class.
        Parameters:
        columnName - Column's name.
        labels - Labels.
      • Codification

        public Codification(java.lang.String[] columnNames,
                            java.lang.String[][] labels)
        Initializes a new instance of the ConfusionMatrix class.
        Parameters:
        columnNames - Column's name.
        labels - Labels.
    • Method Detail

      • setData

        public void setData(java.lang.String columnName,
                            java.lang.String[] labels)
        Set the data for codification.
        Parameters:
        columnName - Column's name.
        labels - Labels.
      • setData

        public void setData(java.lang.String[] columnNames,
                            java.lang.String[][] labels)
        Set the data for codification.
        Parameters:
        columnNames - Column's name.
        labels - Labels.
      • Translate

        public int[] Translate(java.lang.String columnName,
                               java.lang.String[] labels)
        Convert labels to symbols.
        Parameters:
        columnName - Column's name.
        labels - Labels.
        Returns:
        The array of symbol.
      • Translate

        public int Translate(java.lang.String columnName,
                             java.lang.String name)
        Get the specified symbol from the name.
        Parameters:
        columnName - Column name.
        name - Name.
        Returns:
        Symbol.
      • getName

        public java.lang.String getName(java.lang.String columnName,
                                        int symbol)
        Get the name from the symbol.
        Parameters:
        columnName - Column name.
        symbol - Symbol.
        Returns:
        Name.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.