36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
import os
|
|
from datetime import datetime
|
|
from utils import create_logger
|
|
|
|
|
|
# 项目根目录
|
|
root_path = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
# 各子模型目录
|
|
activity_analysis_path = root_path + '/activity_analysis/'
|
|
contribution_analysis_path = root_path + '/contribution_analysis/'
|
|
interests_analysis_path = root_path + '/interests_analysis/'
|
|
learning_ability_analysis_path = root_path + '/learning_ability_analysis/'
|
|
programming_ability_analysis_path = root_path + '/programming_ability_analysis/'
|
|
professional_ability_analysis_path = root_path + '/professional_ability_analysis/'
|
|
user_label_analysis_path = root_path + '/user_label_analysis/'
|
|
|
|
# 随机数种子
|
|
RANDOM_SEED = 42
|
|
|
|
# 创建日志对象
|
|
logger = create_logger(root_path + '/logs/' + str(datetime.date(datetime.now())) + '.log')
|
|
|
|
# mysql连接配置
|
|
mysql_host = "rm-bp13v5020p7828r5rso.mysql.rds.aliyuncs.com"
|
|
mysql_user = "testeducoder"
|
|
mysql_passwd = "TEST@123"
|
|
mysql_port = 3306
|
|
mysql_database = "preeducoderweb"
|
|
|
|
# 之前登录的天数
|
|
before_login_days = 30
|
|
|
|
test_user_id = 201
|
|
|
|
data_before_days = 10 |