Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
lvlvhao dc1d9b9e30 | 2 years ago | |
---|---|---|
Lightgbm.py | 2 years ago | |
README.txt | 2 years ago | |
data_process.py | 2 years ago | |
predict.py | 2 years ago |
使用LightGBM模型进行新品销量预测
准备
前提: Python 3.6 and Lightgbm
1.pip install lightgbm
2.dataset,Move train.csv,val.csv,test.csv,predict.csv to ./data/
1.数据处理
运行:python3 data_process.py
输入是数据的train.csv,val.csv,test.csv路径
输出是对数据的处理,可以直接作为Lightgbm的输入
2.训练
运行:python3 Lightgbm.py
输入是数据train.csv,val.csv,test.csv的路径
输出是测试集上的wmape
3.预测
运行:python3 predict.py
输入是预测数据predict.csv的路径
输出是使用训练好的模型预测的结果
使用机器学习模型预测新产品上市后一段时间后的销售情况,包括数据处理、模型训练和预测模块。新品销量预测可以辅助供应链中生产计划、库存管理和车辆调度等环节进行决策。
Python
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》