Object

smile

read

Related Doc: package smile

Permalink

object read

Input operators.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. read
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(file: String): AnyRef

    Permalink

    Reads a Serializable object/model.

  5. def arff(file: String, responseIndex: Int = 1): AttributeDataset

    Permalink

    Reads an ARFF file.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def coo(file: String, arrayIndexOrigin: Int = 0): SparseDataset

    Permalink

    Reads spare dataset in coordinate triple tuple list format.

    Reads spare dataset in coordinate triple tuple list format. Coordinate file stores a list of (row, column, value) tuples:

    instanceID attributeID value
    instanceID attributeID value
    instanceID attributeID value
    instanceID attributeID value
    ...
    instanceID attributeID value
    instanceID attributeID value
    instanceID attributeID value

    Ideally, the entries are sorted (by row index, then column index) to improve random access times. This format is good for incremental matrix construction.

    Optionally, there may be 2 header lines

    D    // The number of instances
    W    // The number of attributes

    or 3 header lines

    D    // The number of instances
    W    // The number of attributes
    N    // The total number of nonzero items in the dataset.

    These header lines will be ignored.

    file

    the file path.

    arrayIndexOrigin

    the starting index of array. By default, it is 0 as in C/C++ and Java. But it could be 1 to parse data produced by other programming language such as Fortran.

  9. def csv(file: String, response: Option[(Attribute, Int)] = None, comment: String = "%", missing: String = "?", header: Boolean = false, rowNames: Boolean = false): AttributeDataset

    Permalink

    Reads a CSV file with response variable.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def gct(file: String): AttributeDataset

    Permalink

    Reads GCT microarray gene expression file.

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hb(file: String): SparseMatrix

    Permalink

    Reads Harwell-Boeing column-compressed sparse matrix.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def jdbc(rs: ResultSet): AttributeDataset

    Permalink

    Reads a JDBC query result to an AttributeDataset.

  19. def libsvm(file: String): SparseDataset

    Permalink

    Reads a LivSVM file.

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def pcl(file: String): AttributeDataset

    Permalink

    Reads PCL microarray gene expression file.

  24. def res(file: String): AttributeDataset

    Permalink

    Reads RES microarray gene expression file.

  25. def sb(file: String): BinarySparseDataset

    Permalink

    Reads sparse binary dataset.

    Reads sparse binary dataset. Each item is stored as an integer array, which are the indices of nonzero elements in ascending order.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def table(file: String, response: Option[(Attribute, Int)] = None, delimiter: String = "\\s+", comment: String = "%", missing: String = "?", header: Boolean = false, rowNames: Boolean = false): AttributeDataset

    Permalink

    Reads a delimited text file with response variable.

    Reads a delimited text file with response variable. By default, the parser expects a white-space-separated-values file. Each line in the file corresponds to a row in the table. Within a line, fields are separated by white spaces, each field belonging to one table column. This class can also be used to read other text tabular files by setting delimiter character such ash ','. The file may contain comment lines (starting with '%') and missing values (indicated by placeholder '?').

    file

    the file path

    response

    optional response variable attribute and the column index of response variable. The column index starts at 0.

    delimiter

    delimiter string

    comment

    the start of comment lines

    missing

    the missing value placeholder

    header

    true if the first row is header/column names

    rowNames

    true if the first column is row id/names

    returns

    an attribute dataset

  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def txt(file: String): AttributeDataset

    Permalink

    Reads TXT microarray gene expression file.

    Reads TXT microarray gene expression file. The TXT format is a tab delimited file format that describes an expression dataset. It is organized as follows:

    The first line contains the labels Name and Description followed by the identifiers for each sample in the dataset. The Description is optional.

    Line format:

    Name(tab)Description(tab)(sample 1 name)(tab)(sample 2 name) (tab) ... (sample N name)

    Example:

    Name Description DLBC1_1 DLBC2_1 ... DLBC58_0

    The remainder of the file contains data for each of the genes. There is one line for each gene. Each line contains the gene name, gene description, and a value for each sample in the dataset. If the first line contains the Description label, include a description for each gene. If the first line does not contain the Description label, do not include descriptions for any gene. Gene names and descriptions can contain spaces since fields are separated by tabs.

    Line format:

    (gene name) (tab) (gene description) (tab) (col 1 data) (tab) (col 2 data) (tab) ... (col N data)

    Example:

    AFFX-BioB-5_at AFFX-BioB-5_at (endogenous control) -104 -152 -158 ... -44
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def wavefront(file: String): (Array[Array[Double]], Array[Array[Int]])

    Permalink

    Reads a Wavefront OBJ file.

    Reads a Wavefront OBJ file. The OBJ file format is a simple format of 3D geometry including the position of each vertex, the UV position of each texture coordinate vertex, vertex normals, and the faces that make each polygon defined as a list of vertices, and texture vertices. Vertices are stored in a counter-clockwise order by default, making explicit declaration of face normals unnecessary. OBJ coordinates have no units, but OBJ files can contain scale information in a human readable comment line.

    Note that we parse only vertex and face elements. All other information ignored.

    file

    the file path

    returns

    a tuple of vertex array and edge array.

  34. def xstream(file: String): AnyRef

    Permalink

    Reads an object/model that was serialized by XStream.

Inherited from AnyRef

Inherited from Any

Ungrouped