Skip to content

Commit

Permalink
decrease num_steps of test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxudong committed Sep 19, 2023
1 parent 8672e47 commit 5bbead1
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions easy_rec/python/test/train_eval_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,13 +833,13 @@ def test_batch_tfrecord_input(self):
self.assertTrue(self._success)

def test_autodis_embedding(self):
self._success = test_utils.test_distributed_train_eval(
self._success = test_utils.test_single_train_eval(
'samples/model_config/deepfm_on_criteo_with_autodis.config',
self._test_dir)
self.assertTrue(self._success)

def test_periodic_embedding(self):
self._success = test_utils.test_distributed_train_eval(
self._success = test_utils.test_single_train_eval(
'samples/model_config/deepfm_on_criteo_with_periodic.config',
self._test_dir)
self.assertTrue(self._success)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 2500
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/autoint_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 2500
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/bst_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 2500
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/custom_early_stop_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 50
sync_replicas: True
num_steps: 500
num_steps: 200
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/dbmtl_backbone_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ train_config {
}
use_moving_average: false
}
num_steps: 200
num_steps: 100
sync_replicas: true
save_checkpoints_steps: 100
log_step_count_steps: 100
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/dbmtl_mmoe_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ train_config {
}
use_moving_average: false
}
num_steps: 5000
num_steps: 100
sync_replicas: true
save_checkpoints_steps: 100
log_step_count_steps: 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ train_config {
}
use_moving_average: false
}
num_steps: 1000
num_steps: 100
sync_replicas: true
save_checkpoints_steps: 100
log_step_count_steps: 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: false
num_steps: 2500
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/dssm_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: false
num_steps: 2500
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/dssm_reg_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: false
num_steps: 2500
num_steps: 100
}

eval_config {
Expand Down
4 changes: 2 additions & 2 deletions samples/model_config/dssm_with_sample_weight.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ eval_input_path: "data/test/test_sample_weight.txt"
model_dir: 'experiments/dssm_with_sample_weight/'

train_config {
log_step_count_steps: 200
log_step_count_steps: 100
optimizer_config: {
adam_optimizer: {
learning_rate: {
Expand All @@ -18,7 +18,7 @@ train_config {
use_moving_average: false
}

save_checkpoints_steps: 500
save_checkpoints_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/esmm_distribute_eval_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 1000
num_steps: 100
}

eval_config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 5000
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/esmm_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 5000
num_steps: 100
}

eval_config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 5000
num_steps: 200
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/fibinet_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 400
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/metric_learning_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: false
num_steps: 2500
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/multi_tower_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ train_config {
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 200
num_steps: 100
}

eval_config {
Expand Down
6 changes: 3 additions & 3 deletions samples/model_config/pdn_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ eval_input_path: "data/test/tb_data/taobao_pdn_fake_test_data"
model_dir: "experiments/pdn_on_taobao"

train_config {
log_step_count_steps: 5
log_step_count_steps: 50
optimizer_config: {
adam_optimizer: {
learning_rate: {
Expand All @@ -19,8 +19,8 @@ train_config {
}
use_moving_average: false
}
save_summary_steps: 5
num_steps: 2000
save_summary_steps: 50
num_steps: 100
}

eval_config {
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/ple_on_sequence_feature_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ train_config {
}
use_moving_average: false
}
num_steps: 200
num_steps: 100
sync_replicas: true
save_checkpoints_steps: 100
log_step_count_steps: 100
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/ple_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ train_config {
}
use_moving_average: false
}
num_steps: 200
num_steps: 100
sync_replicas: true
save_checkpoints_steps: 100
log_step_count_steps: 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ train_config {
}
use_moving_average: false
}
num_steps: 5000
num_steps: 100
sync_replicas: true
save_checkpoints_steps: 100
log_step_count_steps: 100
Expand Down
2 changes: 1 addition & 1 deletion samples/model_config/simple_multi_task_on_taobao.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ train_config {
}
use_moving_average: false
}
num_steps: 5000
num_steps: 100
sync_replicas: true
save_checkpoints_steps: 100
log_step_count_steps: 100
Expand Down

0 comments on commit 5bbead1

Please sign in to comment.