Logistic regression presents an intimidating array of parameters to tweak for better performance, and working with it is a bit of black art. Having built thousands of these classifiers, we are still learning how to do it better. This recipe will point you in the general right direction, but the topic probably deserves its own book.
This recipe involves extensive changes to the source of
src/com/lingpipe/chapter3/TuneLogRegParams.java. We will just run one configuration of it here, with most of the exposition in the How it works… section.
java -cp lingpipe-cookbook.1.0.jar:lib/lingpipe-4.1.0.jar:lib/opencsv-2.4.jar com.lingpipe.cookbook.chapter3.TuneLogRegParams ...