All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | Friends | List of all members
paal::detail::svm_row< CoordinatesType, ResultType, FeatureIdType > Class Template Reference

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...
 

Detailed Description

template<typename CoordinatesType, typename ResultType = int, typename FeatureIdType = std::size_t>
class paal::detail::svm_row< CoordinatesType, ResultType, FeatureIdType >

class that can read single svm row

Template Parameters
CoordinatesType
ResultType
FeatureIdType

Definition at line 64 of file read_svm.hpp.

Friends And Related Function Documentation

template<typename CoordinatesType , typename ResultType = int, typename FeatureIdType = std::size_t>
std::istream& operator>> ( std::istream &  row_stream,
svm_row< CoordinatesType, ResultType, FeatureIdType > &  row 
)
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.

Parameters
row_streamcontaining only one row (passing stream with more than one row will fail the stream)
row
Returns
should return empty stream

Definition at line 94 of file read_svm.hpp.


The documentation for this class was generated from the following file: