Group aware GPU sketching. (#5551)
* Group aware GPU weighted sketching. * Distribute group weights to each data point. * Relax the test. * Validate input meta info. * Fix metainfo copy ctor.
This commit is contained in:
@@ -87,11 +87,23 @@ class MetaInfo {
|
||||
|
||||
this->weights_.Resize(that.weights_.Size());
|
||||
this->weights_.Copy(that.weights_);
|
||||
|
||||
this->base_margin_.Resize(that.base_margin_.Size());
|
||||
this->base_margin_.Copy(that.base_margin_);
|
||||
|
||||
this->labels_lower_bound_.Resize(that.labels_lower_bound_.Size());
|
||||
this->labels_lower_bound_.Copy(that.labels_lower_bound_);
|
||||
|
||||
this->labels_upper_bound_.Resize(that.labels_upper_bound_.Size());
|
||||
this->labels_upper_bound_.Copy(that.labels_upper_bound_);
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Validate all metainfo.
|
||||
*/
|
||||
void Validate() const;
|
||||
|
||||
MetaInfo Slice(common::Span<int32_t const> ridxs) const;
|
||||
/*!
|
||||
* \brief Get weight of each instances.
|
||||
|
||||
Reference in New Issue
Block a user