#include <examples.h>
Public Member Functions | |
Examples () | |
Examples (const Attributes &attributes) throw ( logic_error ) | |
void | parse (istream &in) throw ( logic_error ) |
void | setAttributes (const Attributes &attributes) throw ( logic_error ) |
Private Attributes | |
Attributes | attributes |
Friends | |
ostream & | operator<< (ostream &out, const Examples &e) |
Stores examples for data sets for machine learning.
Examples::Examples | ( | ) |
Default constructor.
Examples::Examples | ( | const Attributes & | attributes | ) | |
throw | ( | logic_error | |||
) |
Explicit constructor.
attributes | the attributes for this set of examples |
logic_error | if a type mismatch occurs |
void Examples::parse | ( | istream & | in | ) | |
throw | ( | logic_error | |||
) |
void Examples::setAttributes | ( | const Attributes & | attributes | ) | |
throw | ( | logic_error | |||
) |
Explicit constructor.
attributes | the attributes for this set of examples |
logic_error | if a type mismatch occurs |
|
friend |
Writes the specified attribute to the output stream and returns it.
out | the output stream for writing |
e | the specified example for writing |
|
private |
the attributes structure for these examples