Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
f45b45e2
P
Paddle
项目概览
PaddlePaddle
/
Paddle
11 个月 前同步成功
通知
2292
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
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
# 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");
# you may not use this file except in compliance with the License.
...
...
@@ -21,7 +21,7 @@ cd $DIR
#download the dataset
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
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");
# you may not use this file except in compliance with the License.
...
...
@@ -16,7 +16,7 @@ from paddle.trainer.PyDataProvider2 import *
import
sys
import
numpy
as
np
TERM_NUM
=
24
FORECASTING_NUM
=
2
5
FORECASTING_NUM
=
2
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");
# you may not use this file except in compliance with the License.
...
...
demo/traffic_prediction/predict.sh
浏览文件 @
f45b45e2
#!/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");
# you may not use this file except in compliance with the License.
...
...
demo/traffic_prediction/train.sh
浏览文件 @
f45b45e2
#!/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");
# you may not use this file except in compliance with the License.
...
...
@@ -15,7 +15,6 @@
set
-e
cfg
=
trainer_config.py
#TRAINER_BIN="./paddle_trainer"
paddle train
\
--config
=
$cfg
\
--save_dir
=
./output
\
...
...
@@ -25,6 +24,4 @@ paddle train \
--num_passes
=
10
\
--use_gpu
=
false
\
--show_parameter_stats_period
=
3000
\
--test_wait
=
1
#--test_all_data_in_one_period=1 \
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");
# you may not use this file except in compliance with the License.
...
...
@@ -22,7 +22,7 @@ define_py_data_sources2(
train_list
=
trn
,
test_list
=
tst
,
module
=
"dataprovider"
,
obj
=
process
)
################################### Parameter Configuaration #######################################
TERM_NUM
=
24
FORECASTING_NUM
=
2
5
FORECASTING_NUM
=
2
4
emb_size
=
16
batch_size
=
128
if
not
is_predict
else
1
settings
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录