|
SparseParse Method (String, NullableDouble)
|
Parses a string containing a sparse array in LibSVM
format into a
SparseT vector.
Namespace:
Accord.Math
Assembly:
Accord (in Accord.dll) Version: 3.8.0
Syntax public static Sparse<double> Parse(
string values,
Nullable<double> insertValueAtBeginning = null
)
Public Shared Function Parse (
values As String,
Optional insertValueAtBeginning As Nullable(Of Double) = Nothing
) As Sparse(Of Double)
Request Example
View SourceParameters
- values
- Type: SystemString
An array of "index:value" strings indicating
where each value belongs in the sparse vector. - insertValueAtBeginning (Optional)
- Type: SystemNullableDouble
Whether an intercept term should be added
at the beginning of the vector.
Return Value
Type:
SparseDoubleSee Also