Prepearing Data
Use the script such as rcv1/download.sh and ctr/download.sh to prepare
sample data.
Run L1 Logistic Regression on the CTR dataset
Let's first start one worker and one server in the local machine to run the online solver.
../../script/ps.sh start ../../build/linear -app_file ctr/online_l1lr.confNext we use 3 workers and 4 servers:
../../script/ps.sh start -nw 3 -ns 4 ../../build/linear -app_file ctr/online_l1lr.confWe can also start the jobs in multiple machines. Assume there is a your_hostfile
containing all machines IPs line by line. Then start the job via
the -hostfile option.
../../script/ps.sh start -hostfile your_hostfile -nw 3 -ns 4 ../../build/linear -app_file ctr/online_l1lr.confFinally, we can change the application by the -app_file option. For example, Evaluate the
trained model
../../script/ps.sh start ../../build/linear -app_file ctr/eval_online.confor train by the batch solver
../../script/ps.sh start ../../build/linear -app_file ctr/batch_l1lr.confSee more information about the configuration file in linear.proto