Jump to content
Sign in to follow this  

What is the mathematical principal of setting class weight in logestic regression in scikit-learn library in Python

Recommended Posts

Dear all, 

In machine learning library scikit-learn of python, the logestic regression function has an argument "class_weight". When you set a higher class weight to a class during fitting the logestic model, you will get higher predictive accuracy of this class.  I wish to know what is mathematical principal of setting class_weight. Is it related to modify the target function of logestic regression (https://drive.google.com/open?id=16TKZFCwkMXRKx_fMnn3d1rvBWwsLbgAU) ?

Thank you in advance.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.