Skip to main content

Blog

Learn About Our Meetup

5000+ Members

MEETUPS

LEARN, CONNECT, SHARE

Join our meetup, learn, connect, share, and get to know your Toronto AI community. 

JOB POSTINGS

INDEED POSTINGS

Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.

CONTACT

CONNECT WITH US

Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.

[D] XGBoost Custom Objective

I have seen that for xgboost you can write your own loss function, and have even seen the example on the xgboost github. What I am wondering is there an example somewhere about how to go about developing that code?

In other words, say I have some metric (other than say squared loss) that I want my model to optimize and use to determine the weights. It looks like I need to determine the gradient and hessian, but I’m not sure how to figure this out.

submitted by /u/mydogissnoring
[link] [comments]