#ifndef __IO_DEF_H #define __IO_DEF_H #include using namespace std; namespace MultiBoost { #define DEFAULT_BASE_TYPE float #define DEFAULT_LABEL_BASE_TYPE double #define DEFAULT_VALUE 0 #define UNKNOWN_VALUE numeric_limits::signaling_nan() // ----------------------------------------------------------------------------- /** * Defines the data representation */ enum eDataRep { DR_UNKNOWN, DR_DENSE, DR_SPARSE }; // ----------------------------------------------------------------------------- /** * Defines the label representation. */ enum eLabelRep { LR_UNKNOWN, LR_DENSE, LR_SPARSE }; // ----------------------------------------------------------------------------- // For RawData, defines the class of the parser enum eFileFormat { FF_SIMPLE, FF_ARFF, FF_ARFFBZIP2, FF_LSHTC // FF_BINARY, // To come next! }; // ----------------------------------------------------------------------------- /** * Defines the type of input. Used in case * train and test differs in any way. * \date 21/11/2005 */ enum eInputType { IT_TRAIN, //!< If the input is train-type. IT_TEST //!< If the input is test-type. }; // ----------------------------------------------------------------------------- /* Defines the intial weighting of the examples * */ enum eWeightInitType { WIT_SHARE_POINT, // eq1 WIT_SHARE_LABEL, // eq2 WIT_PROP_ONLY, // eq3 WIT_BALANCED }; // ----------------------------------------------------------------------------- //for ArffParser enum eTokenType { TT_EOF, TT_COMMENT, TT_RELATION, TT_ATTRIBUTE, TT_DATA, TT_UNKNOWN }; // ----------------------------------------------------------------------------- enum eAttributeType { ATTRIBUTE_NUMERIC, // eq1 ATTRIBUTE_ENUM, // eq2 }; } // end namespace multibbost #endif