Package adams.ml.data

Class DatasetInfo

    • Constructor Detail

      • DatasetInfo

        public DatasetInfo​(Dataset data)
        Initializes the dataset structure.
        Parameters:
        data - the data to get the info from
    • Method Detail

      • getHeader

        public Dataset getHeader()
        Returns the header.
        Returns:
        the header
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in the dataset.
        Returns:
        the number of columns
      • getColumnTypes

        public Collection<Cell.ContentType> getColumnTypes​(int col)
        Returns the column types for the specified column.
        Parameters:
        col - the column to get the types for
        Returns:
        the types
      • getColumnTypes

        public Collection<Cell.ContentType> getColumnTypes​(String colName)
        Returns the column types for the specified column.
        Parameters:
        colName - the column to get the types for
        Returns:
        the types
      • getClassColumns

        public Set<String> getClassColumns()
        Returns the class columns.
        Returns:
        the class columns