I have a following question: Let X_i and A_i (binary) be covariates and labels for i-th observation, then the current XGBoost R package can solve the following optimization problem:
where l is a loss function and the minimization is over some functional space. Then we can estimate the classification boundary function. But if we observe data (X_i, A_i, Y_i) and we want to deal with the following problem
where $w$ is a function of variable Y and can be regarded as a weight. Then can we also use XGBoost R package directly?