--prediction_csv
Switch
--prediction_csv
Description
Write prediction results in a separate csv.
Argument and Default Value
No argument. Boolean switch, default: False.
Details
Aliased as --pred_csv. Used with the predict_*/combo_test_* prediction switches; writes the per-group predicted values (yhat) to a csv next to --output_name instead of only printing summary metrics. For classifiers, see also --probability_csv/--prob_csv to write predicted class probabilities instead of hard labels.
Example Commands
Using the packaged dla_tutorial dataset (see Differential Language Analysis (DLA) Tutorial):
dlatkInterface.py -d dla_tutorial -t msgs -c user_id -f 'feat$1gram$msgs$user_id$16to16$0_01' \
--outcome_table blog_outcomes --outcomes age --combo_test_regression --prediction_csv --output_name ./out