Adrien Biarnes
Mar 28, 2023

In my experience setting class weights always worked. I haven’t encountered a case when it did not give me a boost in performance. Also I recently used class weights with a class ratio of 100:1 with XGBoost and it worked like a charm. One thing though is that I had several millions of observations. If you a medium/small dataset then yes you might not have enough examples of the minority class

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Adrien Biarnes
Adrien Biarnes

Responses (1)

Write a response