object read
Input operators.
- Alphabetic
- By Inheritance
- read
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(file: String): AnyRef
Reads a
Serializable
object/model. -
def
arff(file: String, responseIndex: Int = -1): AttributeDataset
Reads an ARFF file.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
coo(file: String, arrayIndexOrigin: Int = 0): SparseDataset
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.
-
def
csv(file: String, attributes: Array[Attribute] = null, response: Option[(Attribute, Int)] = None, comment: String = "%", missing: String = "?", header: Boolean = false, rowNames: Boolean = false): AttributeDataset
Reads a CSV file with response variable.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
gct(file: String): AttributeDataset
Reads GCT microarray gene expression file.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hb(file: String): SparseMatrix
Reads Harwell-Boeing column-compressed sparse matrix.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
jdbc(rs: ResultSet): AttributeDataset
Reads a JDBC query result to an AttributeDataset.
-
def
libsvm(file: String): SparseDataset
Reads a LivSVM file.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pcl(file: String): AttributeDataset
Reads PCL microarray gene expression file.
-
def
res(file: String): AttributeDataset
Reads RES microarray gene expression file.
-
def
sb(file: String): BinarySparseDataset
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
table(file: String, attributes: Array[Attribute] = null, response: Option[(Attribute, Int)] = None, delimiter: String = "\\s+", comment: String = "%", missing: String = "?", header: Boolean = false, rowNames: Boolean = false): AttributeDataset
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
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
txt(file: String): AttributeDataset
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
wavefront(file: String): (Array[Array[Double]], Array[Array[Int]])
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.
-
def
xstream(file: String): AnyRef
Reads an object/model that was serialized by XStream.
High level Smile operators in Scala.