Documentation of 'smile.data.parser.BinarySparseDatasetParser' Java class
BinarySparseDatasetParser
smile.data.parser

Class BinarySparseDatasetParser



  • public class BinarySparseDatasetParser
    extends java.lang.Object
    Parser for binary spare dataset. In the file, each line is a datum as an integer list, which are the indices of nonzero elements. During the parsing, the duplicated indices will be removed and indices will be sorted into ascending order.
    • Constructor Detail

      • BinarySparseDatasetParser

        public BinarySparseDatasetParser()
        Constructor.
    • Method Detail

      • parse

        public BinarySparseDataset parse(java.net.URI uri)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from given URI.
        Throws:
        java.io.IOException
        java.text.ParseException
      • parse

        public BinarySparseDataset parse(java.lang.String name,
                                         java.net.URI uri)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from given URI.
        Parameters:
        uri - the URI of data source.
        Throws:
        java.io.IOException
        java.text.ParseException
      • parse

        public BinarySparseDataset parse(java.lang.String path)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from given file.
        Throws:
        java.io.IOException
        java.text.ParseException
      • parse

        public BinarySparseDataset parse(java.lang.String name,
                                         java.lang.String path)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from given file.
        Parameters:
        path - the file path of data source.
        Throws:
        java.io.IOException
        java.text.ParseException
      • parse

        public BinarySparseDataset parse(java.io.File file)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from given file.
        Throws:
        java.io.IOException
        java.text.ParseException
      • parse

        public BinarySparseDataset parse(java.lang.String name,
                                         java.io.File file)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from given file.
        Parameters:
        file - the file of data source.
        Throws:
        java.io.IOException
        java.text.ParseException
      • parse

        public BinarySparseDataset parse(java.io.InputStream stream)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from an input stream.
        Parameters:
        stream - the input stream of data.
        Throws:
        java.io.IOException
        java.text.ParseException
      • parse

        public BinarySparseDataset parse(java.lang.String name,
                                         java.io.InputStream stream)
                                  throws java.io.IOException,
                                         java.text.ParseException
        Parse a binary sparse dataset from an input stream.
        Parameters:
        name - the name of dataset.
        stream - the input stream of data.
        Throws:
        java.io.IOException
        java.text.ParseException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.