Click or drag to resize
Accord.NET (logo)

SparseWriter Class

Writer for data files containing samples in libsvm's sparse format.
Inheritance Hierarchy
SystemObject
  Accord.IOSparseWriter

Namespace:  Accord.IO
Assembly:  Accord.IO (in Accord.IO.dll) Version: 3.8.0
Syntax
public class SparseWriter : IDisposable
Request Example View Source

The SparseWriter type exposes the following members.

Constructors
  NameDescription
Public methodSparseWriter(Stream)
Initializes a new instance of the SparseWriter class.
Public methodSparseWriter(String)
Initializes a new instance of the SparseWriter class.
Public methodSparseWriter(Stream, Encoding)
Initializes a new instance of the SparseWriter class.
Public methodSparseWriter(String, Encoding)
Initializes a new instance of the SparseWriter class.
Top
Properties
  NameDescription
Public propertyBaseStream
Returns the underlying stream.
Public propertyIntercept
Gets or sets whether to include an intercept term (bias) value at the beginning of each new sample. Default is null (don't include anything).
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the SparseReader is reclaimed by garbage collection.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite(Double, Boolean)
Writes the given feature vector and associated output label/value to the file.
Public methodWrite(Double, Double)
Writes the given feature vector and associated output label/value to the file.
Public methodWrite(Double, Boolean)
Writes the given feature vectors and associated output label/value to the file.
Public methodWrite(SparseDouble, Boolean)
Writes the given feature vector and associated output label/value to the file.
Public methodWrite(SparseDouble, Double)
Writes the given feature vector and associated output label/value to the file.
Public methodWrite(SparseDouble, Boolean)
Writes the given feature vectors and associated output label/value to the file.
Public methodWrite(Double, Double, String)
Writes the given feature vector and associated output label/value to the file.
Public methodWrite(SparseDouble, Boolean, String)
Writes the given feature vector and associated output label/value to the file.
Public methodWrite(SparseDouble, Double, String)
Writes the given feature vector and associated output label/value to the file.
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also