ShopTRAINING/server/pharmacy_predictor.py.bak

49 lines
1.2 KiB
Python

"""
药店销售预测系统 - 主接口文件
"""
# 导入核心预测器
from core.predictor import PharmacyPredictor
# 导入训练函数
from trainers import (
train_product_model,
train_product_model_with_mlstm,
train_product_model_with_kan,
train_product_model_with_tcn,
train_product_model_with_transformer
)
# 导入预测函数
from predictors.model_predictor import load_model_and_predict
# 导入分析函数
from analysis.trend_analysis import (
analyze_prediction_result,
analyze_trend,
calculate_prediction_statistics,
calculate_day_over_day_changes,
compare_with_historical
)
from analysis.explanation import (
analyze_influencing_factors,
generate_prediction_explanation
)
# 导出所有函数和类
__all__ = [
'PharmacyPredictor',
'train_product_model',
'train_product_model_with_mlstm',
'train_product_model_with_kan',
'train_product_model_with_tcn',
'train_product_model_with_transformer',
'load_model_and_predict',
'analyze_prediction_result',
'analyze_trend',
'calculate_prediction_statistics',
'calculate_day_over_day_changes',
'compare_with_historical',
'analyze_influencing_factors',
'generate_prediction_explanation'
]