--picklefile

Switch

--picklefile

Description

Switch to indicate name of pickle file to save/load a model from.

Argument and Default Value

Name of picklefile

Details

If you are running a command that creates/trains or loads/uses a model, using this will tell the infrastructure where to find/put the model. This switch requires the use of --load_model or --save_model.

Other Switches

Required Switches: -d, -g, -t, -f, --outcome_table, --outcomes --save_model or --load_model Example Commands ================ .. code:doc:fwflag_block:: python

# Trains a regression model to predict age for users from 1grams # Will save the model to a picklefile called deleteMe.pickle ~/fwInterface.py -d fb20 -t messages_en -g user_id -f 'feat$1gram$messages_en$user_id$16to16$0_01' --outcome_table masterstats_andy_r10k --outcomes age --train_regression --save_model --picklefile deleteMe.pickle

# Uses the trained regression model (deleteMe.pickle) to predict age for users from 1grams ~/fwInterface.py -d fb20 -t messages_en -g user_id -f 'feat$1gram$messages_en$user_id$16to16$0_01' --outcome_table masterstats_andy_r10k --outcomes age --predict_regression --load_model --picklefile deleteMe.pickle