Class CsvDataset

    • Field Detail

      • csvUrl

        protected java.net.URL csvUrl
      • csvFormat

        protected org.apache.commons.csv.CSVFormat csvFormat
      • csvRecords

        protected java.util.List<org.apache.commons.csv.CSVRecord> csvRecords
    • Method Detail

      • getCell

        public java.lang.String getCell​(long rowIndex,
                                        java.lang.String featureName)
        Returns a cell in the dataset.
        Specified by:
        getCell in class TabularDataset
        Parameters:
        rowIndex - the row index or record index for the cell
        featureName - the feature or column of the cell
        Returns:
        the value of the cell at that row and column
      • availableSize

        protected long availableSize()
        Specified by:
        availableSize in class ai.djl.training.dataset.RandomAccessDataset
      • prepare

        public void prepare​(ai.djl.util.Progress progress)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
        Returns the column names of the CSV file.
        Returns:
        a list of column name