kdd2017---踩坑
来源:互联网 发布:泗阳网络直通车 编辑:程序博客网 时间:2024/06/05 13:24
kdd2017
目录
- kdd2017
- 目录
- 1XGBRegressor之objective和eval_metric
- 填充缺失值后使用随机森林模型failed
- 天气数据海平面气压-实时气压failed
- 过滤060000以前的训练数据failed
- 对均值进行平滑
- 公式输入的案例
1、XGBRegressor之objective和eval_metric
更改模型的目标函数和评价指标如下所示:
def objective(preds, dtrain): labels = dtrain#.get_label() grad = (preds - labels)*-1~~~#此处省略 hess = np.ones_like(grad) return grad, hessdef eval_metric(preds,dtrain): truth = dtrain return 'error', np.mean(np.abs(preds-truth)/truth)
按照比赛评价指标更改后的目标函数和评价指标对模型训练没有效果。
目标函数无法直接求导,因此先对其进行了平方。一阶导与rmse求出的目标函数只有系数不同,二阶导则同样为常数。
比赛评价指标如下所示:
Evaluation Metrics
We choose Mean Absolute Percentage Error (MAPE) to evaluate the result.
Task 1: Let drt and prt be the actual and predicted average travel time for route r during time window t. The MAPE for travel time prediction is defined as:
MAPE=1R∑r=1R(1T∣∣∣drt−prtdrt∣∣∣)
R and T are the number of routes and number of to-predict time windows in the testing period respectively.
Task 2: Let C be the number of tollgate-direction pairs (as aforementioned: 1-entry, 1-exit, 2-entry, 3-entry and 3-exit), T be the number of time windows in the testing period, and fct and pct be the actual and predicted traffic volume for a specific tollgate-direction pair c during time window t. The MAPE for traffic volume prediction is defined as:
MAPE=1C∑c=1C(1T∣∣∣fct−pctfct∣∣∣)
填充缺失值后使用随机森林模型—failed!
天气数据(海平面气压-实时气压)—failed!
过滤06:00:00以前的训练数据—failed!
对均值进行平滑?
公式输入的案例
- kdd2017---踩坑
- 【数据挖掘】【总结】项目总结之KDD2017
- 祝贺实验室的师兄夺得KDD2017的两项冠军,沾沾喜气
- 滴滴KDD2017论文:基于组合优化的出租车分单模型 By 机器之心2017年8月14日 10:29 数据挖掘顶会 KDD 2017 已经开幕,国内有众多来自产业界的论文被 KDD 2017 接收。
- 踩坑
- php踩坑
- Swift 踩坑
- promise踩坑
- roketMQ踩坑
- 踩坑[INSTALL_FAILED_PERMISSION_LEVEL_DOWNGRADE]
- Solr6-踩坑
- webuploader踩坑
- Glide踩坑
- CocoaLumberjack 踩坑
- Fragment-踩坑
- dagger2踩坑
- python3踩坑
- Docker踩坑
- Android从零开搞系列:自定义View(11)使用ViewPager打造轮播广告条
- 练习
- Docker: Ubuntu使用VNC运行基于Docker容器里的桌面系统
- Ubuntu系统下lnmp环境搭建和Nginx多站点配置
- LeetCode-116. Populating Next Right Pointers in Each Node (JAVA)
- kdd2017---踩坑
- mybatis(一)—-实现crud操作
- 计算长方形的周长和面积(类和对象)
- B
- 数据库操作
- nginx 跨域问题
- <模拟飞机票订票和退票系统>的c++实现
- hdu 1023 java大数写卡特兰数
- servlet中的service()、doPost()、doGet()方法