#include <ViewSet.h>
Inherits NamedObject.
Inheritance diagram for ViewSet:
Public Member Functions | |
ViewSet (const char *name) | |
Creates an empty ViewSet object, with Views to be added later. | |
ViewSet (const char *name, Data *data, int numToGen, int numOrderings) | |
Creates a ViewSet and generates a set of views automatically. | |
void | addView (View *v) |
Adds a View object to an existing ViewSet. | |
int | getNumViews () |
Accessor method. | |
View * | getView (int i) |
Returns the requested View object. | |
Friends | |
ostream & | operator<< (ostream &s, ViewSet &p) |
Lists the contents of each of the Views in the ViewSet. |
This simplifies both training or testing on more than a single subset of the data at once, and the implementation of cross-validation protocols.
|
Creates an empty ViewSet object, with Views to be added later.
|
|
Creates a ViewSet and generates a set of views automatically. The entries in the data set are partitioned among each of the numToGen View objects, in order, and each View object stores numOrderings orderings. This is useful for example for doing a cross-validating train/protocol, with voting classifiers.
|
|
Adds a View object to an existing ViewSet. Provides more fine-grained control over the contents of the ViewSet.
|
|
Accessor method.
|
|
Returns the requested View object.
|
|
Lists the contents of each of the Views in the ViewSet.
|