Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can one inspect the weights learned by a logistic regression classifier in weka?

I'm training Weka's logistic regression classifier and I'm trying to figure out what is going on under the hood. I know that I can use the classifier to look at the confidence distribution per instance using the logistic.distributionForInstance method but is there a way that I can look at the feature weights learned by the classifier?

thanks

like image 515
akobre01 Avatar asked Nov 05 '22 02:11

akobre01


1 Answers

Yes you can get the weights as a 2D array of doubles with the coefficients method. The first index is for the attributes and the second index is for the classes.

like image 54
Michael McGowan Avatar answered Nov 13 '22 00:11

Michael McGowan