OpenANN
1.1.0
An open source library for artificial neural networks.
|
An index-based dataset wrapper for representing efficient dataset views on any DataSet instance. More...
#include <DataSetView.h>
Public Member Functions | |
DataSetView (const DataSetView &dataset) | |
Create an new instance on a given DataSetView (copy constructor) More... | |
DataSetView (DataSet &dataset) | |
Create an empty view on a given OpenANN::DataSet without samples. More... | |
template<typename InputIt > | |
DataSetView (DataSet &dataset, InputIt index_begin, InputIt index_end) | |
Create a new dataset view on a given OpenANN::DataSet by using an STL-like interface on std::vector<int>::iterators for indices. More... | |
virtual | ~DataSetView () |
Destructor for DataSetView (does nothing internally) More... | |
virtual int | samples () |
See OpenANN::DataSet::samples() More... | |
virtual int | inputs () |
See OpenANN::DataSet::inputs() More... | |
virtual int | outputs () |
See OpenANN::DataSet::inputs() More... | |
virtual Eigen::VectorXd & | getInstance (int i) |
See OpenANN::DataSet::getInstance(int) More... | |
virtual Eigen::VectorXd & | getTarget (int i) |
See OpenANN::DataSet::getTarget(int) More... | |
virtual void | finishIteration (Learner &learner) |
See OpenANN::DataSet::finishIteration(OpenANN::Learner&) More... | |
virtual DataSetView & | shuffle () |
Shuffle the order of instances within this dataset view. More... | |
Public Member Functions inherited from OpenANN::DataSet | |
virtual | ~DataSet () |
Friends | |
void | merge (DataSetView &merging, std::vector< DataSetView > &groups) |
Friend declaration for direct access to indices. More... | |
An index-based dataset wrapper for representing efficient dataset views on any DataSet instance.
Its only operating on an index container that points to the current accessable instances from the reference DataSet.
Can be used for splitting and merging any DataSet partitions.
No manual memory de- and allocation is needed to handle internal pointers.
OpenANN::DataSetView::DataSetView | ( | const DataSetView & | dataset) |
Create an new instance on a given DataSetView (copy constructor)
dataset | source instance whose internal data is copied |
|
inline |
Create an empty view on a given OpenANN::DataSet without samples.
dataset | source instance that is referenced by this view |
|
inline |
Create a new dataset view on a given OpenANN::DataSet by using an STL-like interface on std::vector<int>::iterators for indices.
dataset | source instance that is referenced by this view |
index_begin | iterator to the first index of an int stl container |
index_end | iterator to the last index of an int stl container |
|
inlinevirtual |
Destructor for DataSetView (does nothing internally)
|
virtual |
See OpenANN::DataSet::finishIteration(OpenANN::Learner&)
Implements OpenANN::DataSet.
|
virtual |
See OpenANN::DataSet::getInstance(int)
Implements OpenANN::DataSet.
|
virtual |
See OpenANN::DataSet::getTarget(int)
Implements OpenANN::DataSet.
|
virtual |
See OpenANN::DataSet::inputs()
Implements OpenANN::DataSet.
|
virtual |
See OpenANN::DataSet::inputs()
Implements OpenANN::DataSet.
|
virtual |
See OpenANN::DataSet::samples()
Implements OpenANN::DataSet.
|
virtual |
Shuffle the order of instances within this dataset view.
|
friend |
Friend declaration for direct access to indices.
merging | the destination DataSetView that will contain later all instances from the group |
groups | number of DataSetView that should be merged into the destination. |