Commits

Yiliang Xiong  committed bd3ce93

some minor changes for testing batch run

  • Participants
  • Parent commits d3c0fea

Comments (0)

Files changed (2)

File batch_run.do

 global max_iter = 50
 global LL_gap = 10
 global nc = 5
-global nb = 100
 
-** full dataset **
-global dataset_size = 0
+** 2 **
+global nb = 2
+global dataset_size = 2
 global replace_all = 0
 do import_dataset.do
 global replace_all = 1
 do merge_dataset.do
-forvalues i = 1/$nb{
+forvalues i = 1/$nb {
 	global ss = `i'
 	do binary_logit.do
 	do predict_choice.do
 }
 
-** 1 **
-global dataset_size = 1
-do import_dataset.do
-do merge_dataset.do
-do binary_logit.do
-do predict_choice.do
-
-** 2 **
-global dataset_size = 2
-do import_dataset.do
-do merge_dataset.do
-do binary_logit.do
-do predict_choice.do
-
-** 5 **
-global dataset_size = 5
+** full dataset **
+global nb = 100
+global dataset_size = 0
+global replace_all = 0
 do import_dataset.do
+global replace_all = 1
 do merge_dataset.do
-do binary_logit.do
-do predict_choice.do
+forvalues i = 1/$nb{
+	global ss = `i'
+	do binary_logit.do
+	do predict_choice.do
+}

File export_table.do

 sort original_order
 
 // print to a csv file
-outsheet user_id top3_items using "track1/rec_log_ranking_($nc)($ss)$N.csv" if tag_all_user, comma replace
+outsheet user_id top3_items using "track1/rec_log_ranking_($nc)($nb)$N.csv" if tag_all_user, comma replace