49 lines
1.3 KiB
Python
49 lines
1.3 KiB
Python
"""
|
|
Pharmacy Sales Prediction System - Main Interface
|
|
"""
|
|
|
|
# Import core predictor
|
|
from core.predictor import PharmacyPredictor
|
|
|
|
# Import training functions
|
|
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
|
|
)
|
|
|
|
# Import prediction functions
|
|
from predictors.model_predictor import load_model_and_predict
|
|
|
|
# Import analysis functions
|
|
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
|
|
)
|
|
|
|
# Export all functions and classes
|
|
__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'
|
|
] |