4#ifndef XGBOOST_OBJECTIVE_INIT_ESTIMATION_H_
5#define XGBOOST_OBJECTIVE_INIT_ESTIMATION_H_
15inline void CheckInitInputs(
MetaInfo const& info) {
16 CHECK_EQ(info.
labels.Shape(0), info.
num_row_) <<
"Invalid shape of labels.";
19 <<
"Number of weights should be equal to number of data points.";
interface of objective function
Definition objective.h:29
A tensor storage.
Definition linalg.h:742
Definition init_estimation.h:11
Copyright 2015-2023 by XGBoost Contributors.
Copyright 2021-2023 by XGBoost Contributors.
Copyright 2022-2023 by XGBoost contributors.
Definition custom_obj.cc:13
Copyright 2014-2023 by XGBoost Contributors.