write

smile.write
object write

Data saving utilities.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
write.type

Members list

Value members

Concrete methods

def apply[T <: Serializable](x: T, file: String): Unit

Serializes a Serializable object/model to a file.

Serializes a Serializable object/model to a file.

Attributes

def apply[T <: Serializable](x: T, file: Path): Unit

Serializes a Serializable object/model to a file.

Serializes a Serializable object/model to a file.

Attributes

def arff(data: DataFrame, file: String, relation: String): Unit

Writes a data frame to an ARFF file.

Writes a data frame to an ARFF file.

Attributes

def arff(data: DataFrame, file: Path, relation: String): Unit

Writes a data frame to an ARFF file.

Writes a data frame to an ARFF file.

Attributes

def array[T](data: Array[T], file: String): Unit

Writes an array to a text file line by line.

Writes an array to a text file line by line.

Value parameters

data

an array.

file

the file path

Attributes

def array[T](data: Array[T], file: Path): Unit

Writes an array to a text file line by line.

Writes an array to a text file line by line.

Value parameters

data

an array.

file

the file path

Attributes

def arrow(data: DataFrame, file: String): Unit

Writes a data frame to an Apache Arrow file.

Writes a data frame to an Apache Arrow file.

Attributes

def arrow(data: DataFrame, file: Path): Unit

Writes a data frame to an Apache Arrow file.

Writes a data frame to an Apache Arrow file.

Attributes

def csv(data: DataFrame, file: String, delimiter: String): Unit

Writes a DataFrame to a comma delimited text file.

Writes a DataFrame to a comma delimited text file.

Value parameters

data

an attribute dataset.

delimiter

delimiter string.

file

the file path.

Attributes

def csv(data: DataFrame, file: Path, delimiter: String): Unit

Writes a DataFrame to a delimited text file.

Writes a DataFrame to a delimited text file.

Value parameters

data

an attribute dataset.

delimiter

delimiter string.

file

the file path.

Attributes

def table[T](data: Array[Array[T]], file: String, delimiter: String): Unit

Writes a two-dimensional array to a comma delimited text file.

Writes a two-dimensional array to a comma delimited text file.

Value parameters

data

a two-dimensional array.

delimiter

delimiter string.

file

the file path.

Attributes

def table[T](data: Array[Array[T]], file: Path, delimiter: String): Unit

Writes a two-dimensional array to a delimited text file.

Writes a two-dimensional array to a delimited text file.

Value parameters

data

a two-dimensional array.

delimiter

delimiter string.

file

the file path.

Attributes