diff --git a/include/xgboost/data.h b/include/xgboost/data.h index e6754b9e2..4349ab86b 100644 --- a/include/xgboost/data.h +++ b/include/xgboost/data.h @@ -420,33 +420,8 @@ class BatchSet { BatchIterator begin_iter_; }; -/*! - * \brief This is data structure that user can pass to DMatrix::Create - * to create a DMatrix for training, user can create this data structure - * for customized Data Loading on single machine. - * - * On distributed setting, usually an customized dmlc::Parser is needed instead. - */ -template -class DataSource : public dmlc::DataIter { - public: - /*! - * \brief Meta information about the dataset - * The subclass need to be able to load this correctly from data. - */ - MetaInfo info; -}; - /*! * \brief Internal data structured used by XGBoost during training. - * There are two ways to create a customized DMatrix that reads in user defined-format. - * - * - Provide a dmlc::Parser and pass into the DMatrix::Create - * - Alternatively, if data can be represented by an URL, define a new dmlc::Parser and register by - * DMLC_REGISTER_DATA_PARSER; - * - This works best for user defined data input source, such as data-base, filesystem. - * - Provide a DataSource, that can be passed to DMatrix::Create - * This can be used to re-use inmemory data structure into DMatrix. */ class DMatrix { public: