Abstract class, defines interface for data splitting implementations (for use in data accessors). More...
#include <data_splitter.hpp>
Classes | |
class | TClassSplitter |
Data splitting support structure; holds one set of intervals (train, test) per each (data)class. More... | |
Public Types | |
typedef boost::shared_ptr < INTERVALCONTAINER > | PIntervaller |
Public Member Functions | |
Data_Splitter (const Data_Splitter &dsp) | |
void | assign (const unsigned int _clsidx, const PIntervaller _train, const PIntervaller _test) |
void | set_n (const unsigned int _clsidx, const IDXTYPE _n) |
IDXTYPE | get_n (const unsigned int _clsidx) const |
virtual IDXTYPE | getNoOfSplits () const =0 |
virtual bool | makeFirstSplit ()=0 |
virtual bool | makeNextSplit ()=0 |
Data_Splitter * | clone () const |
Data_Splitter * | sharing_clone () const |
virtual std::ostream & | print (std::ostream &os) const |
Protected Types | |
typedef boost::shared_ptr < TClassSplitter > | PClassSplitter |
typedef std::vector < PClassSplitter > ::const_iterator | ClassIterator |
Protected Member Functions | |
void | assert_csplit () const |
Protected Attributes | |
std::vector< PClassSplitter > | csplit |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Data_Splitter< INTERVALCONTAINER, IDXTYPE > &ds) |
Abstract class, defines interface for data splitting implementations (for use in data accessors).
Data_Splitter* FST::Data_Splitter< INTERVALCONTAINER, IDXTYPE >::clone | ( | ) | const [inline, virtual] |
create 1:1 independent clone of the current object
Implements FST::Clonable.
Data_Splitter* FST::Data_Splitter< INTERVALCONTAINER, IDXTYPE >::sharing_clone | ( | ) | const [inline, virtual] |
create equivalent clone of the current object, parmitting read-only access to structures in the source object (allows referencing instead of copying of large memory structures). may be faster and save space but requires more caution with respect to concurrency Use example: Data_Accessor memory data representation cloning
Implements FST::Clonable.