Skip to content

Commit 4c52430

Browse files
Merge pull request #60 from jiangzhonglian/master
更新 设定评估指标 内容
2 parents 49488ce + 6309fd7 commit 4c52430

File tree

17 files changed

+56
-5
lines changed

17 files changed

+56
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
| 深度学习 | 机器学习 | 大数据 | 运维工具 |
142142
| --- | --- | --- | --- |
143143
| [TensorFlow R1.2 中文文档](http://cwiki.apachecn.org/pages/viewpage.action?pageId=10030122) | [机器学习实战-教学](https://github.com/apachecn/MachineLearning) | [Spark 2.2.0和2.0.2 中文文档](http://spark.apachecn.org/) | [Zeppelin 0.7.2 中文文档](http://cwiki.apachecn.org/pages/viewpage.action?pageId=10030467) |
144-
| [Pytorch 3.0 中文文档 ](http://pytorch.apachecn.org/cn/0.3.0/) | [Sklearn 0.19 中文文档](http://sklearn.apachecn.org/) | [Storm 1.1.0和1.0.1 中文文档](http://storm.apachecn.org/) | [Kibana 5.2 中文文档](http://cwiki.apachecn.org/pages/viewpage.action?pageId=8159377) |
144+
| [Pytorch 0.3 中文文档 ](http://pytorch.apachecn.org/cn/0.3.0/) | [Sklearn 0.19 中文文档](http://sklearn.apachecn.org/) | [Storm 1.1.0和1.0.1 中文文档](http://storm.apachecn.org/) | [Kibana 5.2 中文文档](http://cwiki.apachecn.org/pages/viewpage.action?pageId=8159377) |
145145
| | [LightGBM 中文文档](http://lightgbm.apachecn.org/cn/latest) | [Kudu 1.4.0 中文文档](http://cwiki.apachecn.org/pages/viewpage.action?pageId=10813594) | |
146146
| | [XGBoost 中文文档](http://xgboost.apachecn.org/cn/latest) | [Elasticsearch 5.4 中文文档](http://cwiki.apachecn.org/pages/viewpage.action?pageId=4260364) |
147147
| | | [Beam 中文文档](http://beam.apachecn.org/) |

competitions/featured/mercari-price-suggestion-challenge/README.md

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,60 @@
6262

6363
## 5.模型评估
6464

65-
* 设定评估指标
65+
### 设定评估指标
66+
67+
> 1.绝对误差于相对误差
68+
69+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160975410546.jpg)
70+
71+
> 2.平均绝对误差
72+
73+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160975616578.jpg)
74+
75+
> 3.均方误差
76+
77+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160975799651.jpg)
78+
79+
> 4.均方根误差
80+
81+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160977834397.jpg)
82+
83+
> 5.平均绝对百分误差
84+
85+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160979383193.jpg)
86+
87+
> 6.Kappa统计
88+
89+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160982666965.jpg)
90+
91+
> 7.识别准确度(正确率)
92+
93+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160988495710.jpg)
94+
95+
> 8.识别精确度( P值 )
96+
97+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160989546724.jpg)
98+
99+
> 9.反馈率( R值 )
100+
101+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160989672539.jpg)
102+
103+
> 10.非均衡问题( F值 )
104+
105+
106+
> 11.ROC曲线/AUC面积
107+
108+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160989939052.jpg)
109+
110+
> 12.混淆矩阵
111+
112+
![](/static/images/competitions/featured/mercari-price-suggestion-challenge/EvaluationCriteria/15160990207804.jpg)
113+
66114
* 多模型对比
67115
* 模型优化
68116

117+
118+
69119
## 6.模型发布
70120

71121
* 模型部署

src/python/getting-started/digit-recognizer/knn-python3.6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def saveResult(result, csvName):
4343

4444

4545
def knnClassify(trainData, trainLabel):
46-
knnClf = KNeighborsClassifier(3) # default:k = 5,defined by yourself:KNeighborsClassifier(n_neighbors=10)
46+
knnClf = KNeighborsClassifier() # default:k = 5,defined by yourself:KNeighborsClassifier(n_neighbors=10)
4747
knnClf.fit(trainData, ravel(trainLabel)) # ravel Return a contiguous flattened array.
4848
return knnClf
4949

src/python/getting-started/titanic/titanic-pianke2python3.6.py renamed to src/python/getting-started/titanic/titanic-python3.6.py

File renamed without changes.

src/python/getting-started/titanic/titanic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""
3-
Created on 2017-12-7 10:38:05 2017
3+
Created on 2017-12-07
44
Update on 2017-12-24
55
Team: 一把梭
66
Github: https://github.com/apachecn/kaggle
@@ -17,7 +17,8 @@
1717
from sklearn.model_selection import cross_val_score
1818

1919
# 0. 数据读入及预处理
20-
data_train = pd.read_csv('train.csv')
20+
root_path = 'datasets/getting-started/titanic/input'
21+
data_train = pd.read_csv('%s/%s' % (root_path, 'train.csv'))
2122
# data_train.info()
2223
# print(data_train.describe())
2324

98.6 KB
Loading
146 KB
Loading
171 KB
Loading
128 KB
Loading
79.6 KB
Loading

0 commit comments

Comments
 (0)