Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
f45b45e2
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f45b45e2
编写于
1月 06, 2017
作者:
C
chengxingyi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
A traffic prediction demo for ASC17
上级
3403c006
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
12 deletion
+9
-12
demo/traffic_prediction/data/get_data.sh
demo/traffic_prediction/data/get_data.sh
+2
-2
demo/traffic_prediction/dataprovider.py
demo/traffic_prediction/dataprovider.py
+2
-2
demo/traffic_prediction/gen_result.py
demo/traffic_prediction/gen_result.py
+1
-1
demo/traffic_prediction/predict.sh
demo/traffic_prediction/predict.sh
+1
-1
demo/traffic_prediction/train.sh
demo/traffic_prediction/train.sh
+1
-4
demo/traffic_prediction/trainer_config.py
demo/traffic_prediction/trainer_config.py
+2
-2
未找到文件。
demo/traffic_prediction/data/get_data.sh
浏览文件 @
f45b45e2
#!/bin/bash
#!/bin/bash
# Copyright (c) 2016
Baidu
, Inc. All Rights Reserved
# Copyright (c) 2016
PaddlePaddle Authors
, Inc. All Rights Reserved
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -21,7 +21,7 @@ cd $DIR
...
@@ -21,7 +21,7 @@ cd $DIR
#download the dataset
#download the dataset
echo
"Downloading traffic data..."
echo
"Downloading traffic data..."
wget http://paddlepaddle.
bj
.bcebos.com/demo/traffic/traffic_data.tar.gz
wget http://paddlepaddle.
cdn
.bcebos.com/demo/traffic/traffic_data.tar.gz
#extract package
#extract package
echo
"Unzipping..."
echo
"Unzipping..."
...
...
demo/traffic_prediction/dataprovider.py
浏览文件 @
f45b45e2
# Copyright (c) 2016
Baidu
, Inc. All Rights Reserved
# Copyright (c) 2016
PaddlePaddle Authors
, Inc. All Rights Reserved
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -16,7 +16,7 @@ from paddle.trainer.PyDataProvider2 import *
...
@@ -16,7 +16,7 @@ from paddle.trainer.PyDataProvider2 import *
import
sys
import
sys
import
numpy
as
np
import
numpy
as
np
TERM_NUM
=
24
TERM_NUM
=
24
FORECASTING_NUM
=
2
5
FORECASTING_NUM
=
2
4
LABEL_VALUE_NUM
=
4
LABEL_VALUE_NUM
=
4
...
...
demo/traffic_prediction/gen_result.py
浏览文件 @
f45b45e2
# Copyright (c) 2016
Baidu
, Inc. All Rights Reserved
# Copyright (c) 2016
PaddlePaddle Authors
, Inc. All Rights Reserved
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
demo/traffic_prediction/predict.sh
浏览文件 @
f45b45e2
#!/bin/bash
#!/bin/bash
# Copyright (c) 2016
Baidu
, Inc. All Rights Reserved
# Copyright (c) 2016
PaddlePaddle Authors
, Inc. All Rights Reserved
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
demo/traffic_prediction/train.sh
浏览文件 @
f45b45e2
#!/bin/bash
#!/bin/bash
# Copyright (c) 2016
Baidu
, Inc. All Rights Reserved
# Copyright (c) 2016
PaddlePaddle Authors
, Inc. All Rights Reserved
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
set
-e
set
-e
cfg
=
trainer_config.py
cfg
=
trainer_config.py
#TRAINER_BIN="./paddle_trainer"
paddle train
\
paddle train
\
--config
=
$cfg
\
--config
=
$cfg
\
--save_dir
=
./output
\
--save_dir
=
./output
\
...
@@ -25,6 +24,4 @@ paddle train \
...
@@ -25,6 +24,4 @@ paddle train \
--num_passes
=
10
\
--num_passes
=
10
\
--use_gpu
=
false
\
--use_gpu
=
false
\
--show_parameter_stats_period
=
3000
\
--show_parameter_stats_period
=
3000
\
--test_wait
=
1
#--test_all_data_in_one_period=1 \
2>&1 |
tee
'train.log'
2>&1 |
tee
'train.log'
demo/traffic_prediction/trainer_config.py
浏览文件 @
f45b45e2
# Copyright (c) 2016
Baidu
, Inc. All Rights Reserved
# Copyright (c) 2016
PaddlePaddle Authors
, Inc. All Rights Reserved
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -22,7 +22,7 @@ define_py_data_sources2(
...
@@ -22,7 +22,7 @@ define_py_data_sources2(
train_list
=
trn
,
test_list
=
tst
,
module
=
"dataprovider"
,
obj
=
process
)
train_list
=
trn
,
test_list
=
tst
,
module
=
"dataprovider"
,
obj
=
process
)
################################### Parameter Configuaration #######################################
################################### Parameter Configuaration #######################################
TERM_NUM
=
24
TERM_NUM
=
24
FORECASTING_NUM
=
2
5
FORECASTING_NUM
=
2
4
emb_size
=
16
emb_size
=
16
batch_size
=
128
if
not
is_predict
else
1
batch_size
=
128
if
not
is_predict
else
1
settings
(
settings
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录