Thanks for the very nice and useful package! I'm having some troubles when using xgb.max_f1 as evaluation metric for xgb.train. The error comes from sum(labels): "invalid 'type' (closure) of argument". This happens because labels is not defined, and thus, it's a function from the "base" package. Is it possibly related to the version of the XGBoost package I'm using (i.e., 1.3.2.1)? I checked the xgb.train function code and no labels object is returned by the function.
Hi Laurae,
Thanks for the very nice and useful package! I'm having some troubles when using
xgb.max_f1
as evaluation metric forxgb.train
. The error comes fromsum(labels)
: "invalid 'type' (closure) of argument". This happens becauselabels
is not defined, and thus, it's a function from the "base" package. Is it possibly related to the version of the XGBoost package I'm using (i.e., 1.3.2.1)? I checked thexgb.train
function code and nolabels
object is returned by the function.Best regards, Paulo.