I am simulating a bid frequency (Poisson range) in R. I am using gbm
and xgboost
, but does xgboost
seem to have no offset parameter to take into account the exposure?
In a gbm
could be considered as follows:
gbm.fit(x = train,y = target, n.trees = 100,distribution = "poisson", offset = log(exposure))
How to achieve the same result with `xgboost?
PS: I cannot use exposure as a predictor since a new obs is created every time a requirement is observed.
source share