Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using xgb.max_f1 as evaluation metric #15

Open
paulonbernardino opened this issue Feb 19, 2021 · 0 comments
Open

Error when using xgb.max_f1 as evaluation metric #15

paulonbernardino opened this issue Feb 19, 2021 · 0 comments

Comments

@paulonbernardino
Copy link

Hi Laurae,

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.

Best regards,
Paulo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant