--train_c2r
Switch
--train_c2r
Description
Trains a "classify-to-regression" model: first classifies groups into bins, then regresses to predict the original continuous outcome.
Argument and Default Value
No argument. Boolean switch, default: False.
Details
Same underlying ClassifyToRegressionPredictor as --test_c2r and --predict_c2r — see the verified requirement on that page: it looks up outcomes via a bin_<outcome> column name (e.g. bin_age), not the plain outcome column. Not independently exercised past that point in this pass.
Other Switches
Required Switches:
--outcome_table, --outcomes (with a matching
bin_<outcome>column present)
Example Commands
Using the packaged dla_tutorial dataset (see Differential Language Analysis (DLA) Tutorial), assuming a bin_age column exists in blog_outcomes:
dlatkInterface.py -d dla_tutorial -t msgs -c user_id -f 'feat$1to3gram$msgs$user_id$0_05' \
--outcome_table blog_outcomes --outcomes age --train_c2r