|
SparseFormatSave Method (SparseDouble, Boolean, String, SerializerCompression)
|
Saves an array of sparse samples to a file in the disk.
Namespace:
Accord.IO
Assembly:
Accord.IO (in Accord.IO.dll) Version: 3.8.0
Syntax public static void Save(
Sparse<double>[] samples,
bool[] outputs,
string path,
SerializerCompression compression = SerializerCompression.None
)
Public Shared Sub Save (
samples As Sparse(Of Double)(),
outputs As Boolean(),
path As String,
Optional compression As SerializerCompression = SerializerCompression.None
)
Request Example
View SourceParameters
- samples
- Type: Accord.MathSparseDouble
The samples that have been read from the file. - outputs
- Type: SystemBoolean
The output labels associated with each sample in samples. - path
- Type: SystemString
The disk path under which the file will be saved. - compression (Optional)
- Type: Accord.IOSerializerCompression
The type of compression to use. Default is None.
See Also