dmlc-core icon indicating copy to clipboard operation
dmlc-core copied to clipboard

data type of label is DType? it should be real_t?

Open moveforever opened this issue 7 years ago • 1 comments

there existed some problem in source file dmlc-core/src/data/row_block.h

struct RowBlockContainer {
  /*! \brief array[size+1], row pointer to beginning of each rows */
  std::vector<size_t> offset;
  /*! \brief array[size] label of each instance */
  std::vector<DType> label;
  /*! \brief array[size] weight of each instance */
  std::vector<real_t> weight;
  /*! \brief array[size] session-id of each instance */
  std::vector<uint64_t> qid;
  /*! \brief field index */
  std::vector<IndexType> field;
  /*! \brief feature index */
  std::vector<IndexType> index;

the data type of label is real_t @eric-haibin-lin

moveforever avatar May 25 '18 10:05 moveforever

Do you mean you want a different DType for label?

eric-haibin-lin avatar Jun 27 '18 17:06 eric-haibin-lin