Class AirfoilRandomAccess

  • All Implemented Interfaces:
    ai.djl.training.dataset.Dataset

    public final class AirfoilRandomAccess
    extends CsvDataset
    Airfoil Self-Noise Data Set from https://archive.ics.uci.edu/ml/datasets/Airfoil+Self-Noise.

    1503 instances 6 attributes

    • Field Summary

      • Fields inherited from class ai.djl.training.dataset.RandomAccessDataset

        dataBatchifier, device, labelBatchifier, limit, pipeline, prefetchNumber, sampler, targetPipeline
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AirfoilRandomAccess.Builder builder()
      Creates a builder to build a AirfoilRandomAccess.
      java.util.List<java.lang.String> getColumnNames()
      Returns the column names of the CSV file.
      void prepare​(ai.djl.util.Progress progress)
      protected ai.djl.ndarray.NDList toNDList​(ai.djl.ndarray.NDManager manager, org.apache.commons.csv.CSVRecord record, java.util.List<CsvDataset.Feature> selected)
      • Methods inherited from class ai.djl.training.dataset.RandomAccessDataset

        getData, getData, getData, getData, randomSplit, size, subDataset, toArray
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ai.djl.training.dataset.Dataset

        prepare
    • Method Detail

      • prepare

        public void prepare​(ai.djl.util.Progress progress)
                     throws java.io.IOException
        Specified by:
        prepare in interface ai.djl.training.dataset.Dataset
        Overrides:
        prepare in class CsvDataset
        Throws:
        java.io.IOException
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
        Returns the column names of the CSV file.
        Overrides:
        getColumnNames in class CsvDataset
        Returns:
        a list of column name
      • toNDList

        protected ai.djl.ndarray.NDList toNDList​(ai.djl.ndarray.NDManager manager,
                                                 org.apache.commons.csv.CSVRecord record,
                                                 java.util.List<CsvDataset.Feature> selected)
        Overrides:
        toNDList in class CsvDataset