Skip to content

Commit

Permalink
Fix typo. (#10353)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jun 1, 2024
1 parent 92cba25 commit 4f48647
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tree/updater_approx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ auto BatchSpec(TrainParam const &p, common::Span<float> hess) {
}
} // anonymous namespace

class GloablApproxBuilder {
class GlobalApproxBuilder {
protected:
TrainParam const *param_;
HistMakerTrainParam const *hist_param_{nullptr};
Expand Down Expand Up @@ -161,7 +161,7 @@ class GloablApproxBuilder {
}

public:
explicit GloablApproxBuilder(TrainParam const *param, HistMakerTrainParam const *hist_param,
explicit GlobalApproxBuilder(TrainParam const *param, HistMakerTrainParam const *hist_param,
MetaInfo const &info, Context const *ctx,
std::shared_ptr<common::ColumnSampler> column_sampler,
ObjInfo const *task, common::Monitor *monitor)
Expand Down Expand Up @@ -248,7 +248,7 @@ class GloablApproxBuilder {
class GlobalApproxUpdater : public TreeUpdater {
common::Monitor monitor_;
// specializations for different histogram precision.
std::unique_ptr<GloablApproxBuilder> pimpl_;
std::unique_ptr<GlobalApproxBuilder> pimpl_;
// pointer to the last DMatrix, used for update prediction cache.
DMatrix *cached_{nullptr};
std::shared_ptr<common::ColumnSampler> column_sampler_;
Expand Down Expand Up @@ -289,7 +289,7 @@ class GlobalApproxUpdater : public TreeUpdater {
if (!column_sampler_) {
column_sampler_ = common::MakeColumnSampler(ctx_);
}
pimpl_ = std::make_unique<GloablApproxBuilder>(param, &hist_param_, m->Info(), ctx_,
pimpl_ = std::make_unique<GlobalApproxBuilder>(param, &hist_param_, m->Info(), ctx_,
column_sampler_, task_, &monitor_);

linalg::Matrix<GradientPair> h_gpair;
Expand Down

0 comments on commit 4f48647

Please sign in to comment.