Medial Code Documentation
|
data iterator interface this is not a C++ style iterator, but nice for data pulling:) This interface is used to pull in the data The system can do some useful tricks for you like pre-fetching from disk and pre-computation. More...
#include <data.h>
Public Member Functions | |
virtual | ~DataIter (void) DMLC_THROW_EXCEPTION |
destructor | |
virtual void | BeforeFirst (void)=0 |
set before first of the item | |
virtual bool | Next (void)=0 |
move to next item | |
virtual const DType & | Value (void) const =0 |
get current data | |
data iterator interface this is not a C++ style iterator, but nice for data pulling:) This interface is used to pull in the data The system can do some useful tricks for you like pre-fetching from disk and pre-computation.
Usage example:
DType | the data type |
|
pure virtual |
set before first of the item
Implemented in dmlc::data::DensifyParser< IndexType >, xgboost.data::detail::SingleBatchDataIter< DType >, xgboost.data::detail::SingleBatchDataIter< ArrayAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSCAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSCArrayAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSRAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSRArrayAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< DataTableAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< DenseAdapterBatch >, xgboost.data::FileAdapter, xgboost.data::IteratorAdapter< DataIterHandle, XGBCallbackDataIterNext, XGBoostBatchCSR >, xgboost.data::RecordBatchesIterAdapter, dmlc::data::BasicRowIter< IndexType, DType >, dmlc::data::ParquetParser< IndexType, DType >, dmlc::data::TextParserBase< IndexType, DType >, and dmlc::data::TextParserBase< IndexType, real_t >.
|
pure virtual |
move to next item
Implemented in dmlc::data::DensifyParser< IndexType >, xgboost.data::detail::SingleBatchDataIter< DType >, xgboost.data::detail::SingleBatchDataIter< ArrayAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSCAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSCArrayAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSRAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< CSRArrayAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< DataTableAdapterBatch >, xgboost.data::detail::SingleBatchDataIter< DenseAdapterBatch >, xgboost.data::FileAdapter, xgboost.data::IteratorAdapter< DataIterHandle, XGBCallbackDataIterNext, XGBoostBatchCSR >, xgboost.data::RecordBatchesIterAdapter, dmlc::data::BasicRowIter< IndexType, DType >, dmlc::data::ParserImpl< IndexType, DType >, and dmlc::data::ParserImpl< IndexType, real_t >.
|
pure virtual |
get current data
Implemented in dmlc::data::DensifyParser< IndexType >, xgboost.data::CSRAdapter, xgboost.data::DenseAdapter, xgboost.data::ArrayAdapter, xgboost.data::CSRArrayAdapter, xgboost.data::CSCAdapter, xgboost.data::CSCArrayAdapter, xgboost.data::DataTableAdapter, xgboost.data::FileAdapter, xgboost.data::IteratorAdapter< DataIterHandle, XGBCallbackDataIterNext, XGBoostBatchCSR >, xgboost.data::RecordBatchesIterAdapter, dmlc::data::BasicRowIter< IndexType, DType >, dmlc::data::ParserImpl< IndexType, DType >, and dmlc::data::ParserImpl< IndexType, real_t >.