forked from PaddlePaddle/continuous_evaluation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
35 lines (26 loc) · 872 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
import logging
import shutil
workspace = os.path.dirname(os.path.realpath(__file__)) # pwd
pjoin = os.path.join
# the directory structure
# Paddle/
# modelce/
# tasks
# DEBUG
relative_path = os.environ.get('relative_path', '..')
paddle_path = pjoin(workspace, relative_path)
#paddle_path = '/chunwei/Paddle'
baseline_repo_url = os.environ.get('repo_url', '[email protected]:PaddlePaddle/paddle-ce-latest-kpis.git')
baseline_path = pjoin(workspace, 'tasks')
tmp_root = pjoin(workspace, "tmp")
# if the latest kpi is better than best kpi by 1%, update the best kpi.
kpi_update_threshold = 0.3
# mongodb config
db_name = "ce"
# for test, use following config
# db_host = 'ce.paddlepaddle.org'
# db_port = 8006
db_host = os.environ.get('db_host', '127.0.0.1')
db_port = os.environ.get('db_port', 27017)
table_name = os.environ.get('table_name', 'logs')