Documentation of 'edu.hitsz.c102c.cnn.Dataset' Java class
Dataset
edu.hitsz.c102c.cnn

Class Dataset



  • public class Dataset
    extends java.lang.Object
    Cteate a dataset.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      class  Dataset.Record
      Data record (instance), record consists of attributes and categories, the category must be the first column or the last column or empty
    • Constructor Summary

      Constructors 
      Constructor and Description
      Dataset(int classIndex) 
      Dataset(java.util.List<double[]> datas) 
    • Constructor Detail

      • Dataset

        public Dataset(int classIndex)
      • Dataset

        public Dataset(java.util.List<double[]> datas)
    • Method Detail

      • size

        public int size()
      • getLableIndex

        public int getLableIndex()
      • clear

        public void clear()
        Clear data
      • append

        public void append(double[] attrs,
                           java.lang.Double lable)
        Append the record.
        Parameters:
        attrs - Recorded attributes
        lable - Label
      • getAttrs

        public double[] getAttrs(int index)
        Recorded attributes
        Parameters:
        index -
        Returns:
      • getLable

        public java.lang.Double getLable(int index)
      • load

        public static Dataset load(java.lang.String filePath,
                                   java.lang.String tag,
                                   int lableIndex)
        Recorded attributes
        Parameters:
        filePath - file path.
        tag - Field separator
        lableIndex - Class index, starting from 0
        Returns:
      • main

        public static void main(java.lang.String[] args)
      • getRecord

        public Dataset.Record getRecord(int index)
        Get record at index
        Parameters:
        index -
        Returns:

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.