class that can read single svm row More...
#include <read_svm.hpp>
Public Member Functions | |
svm_row (FeatureIdType dimensions=1) | |
constructor | |
CoordinatesType const & | get_coordinates () const |
coordinates getter | |
ResultType const & | get_result () const |
result getter | |
Friends | |
std::istream & | operator>> (std::istream &row_stream, svm_row &row) |
reads svm row of format: More... | |
class that can read single svm row
CoordinatesType | |
ResultType | |
FeatureIdType |
Definition at line 64 of file read_svm.hpp.
|
friend |
reads svm row of format:
line .=. result feature:value feature:value ... feature:value
result .=. 1 | -1
feature .=. positive integer
value .=. float
Results are converted to 0 and 1.
Minimal feature id = 0.
row_stream | containing only one row (passing stream with more than one row will fail the stream) |
row |
Definition at line 94 of file read_svm.hpp.