Class CsvDataset.CsvBuilder<T extends CsvDataset.CsvBuilder<T>>

    • Field Detail

      • csvUrl

        protected java.net.URL csvUrl
      • csvFormat

        protected org.apache.commons.csv.CSVFormat csvFormat
    • Constructor Detail

      • CsvBuilder

        public CsvBuilder()
    • Method Detail

      • self

        protected T self()
        Specified by:
        self in class ai.djl.training.dataset.RandomAccessDataset.BaseBuilder<T extends CsvDataset.CsvBuilder<T>>
      • optCsvFile

        public T optCsvFile​(java.nio.file.Path csvFile)
        Sets the optional CSV file path.
        Parameters:
        csvFile - the CSV file path
        Returns:
        this builder
      • optCsvUrl

        public T optCsvUrl​(java.lang.String csvUrl)
        Sets the optional CSV file URL.
        Parameters:
        csvUrl - the CSV file URL
        Returns:
        this builder
      • setCsvFormat

        public T setCsvFormat​(org.apache.commons.csv.CSVFormat csvFormat)
        Sets the CSV file format.
        Parameters:
        csvFormat - the CSVFormat
        Returns:
        this builder