MLPlatform/config/config.yaml

37 lines
748 B
YAML

# 服务器配置
host: "10.0.0.202"
port: 8992
workers: 4
debug: true
# MLflow配置
mlflow_uri: "http://10.0.0.202:5000"
# 数据处理配置
dataset:
raw_dir: "dataset/dataset_raw"
processed_dir: "dataset/dataset_processed"
# 模型配置
model:
save_dir: "models"
batch_size: 32
num_workers: 4
# 系统监控配置
monitor:
log_dir: ".log"
resource_check_interval: 60 # 秒
cleanup_interval: 86400 # 24小时
max_log_days: 30 # 日志保留天数
# 安全配置
security:
secret_key: "your-secret-key"
token_expire_minutes: 1440 # 24小时
# 性能配置
performance:
max_concurrent_trains: 4 # 最大并发训练数
cache_size: 1024 # MB
timeout: 3600 # 秒