Skip to main content

A model to predict pedestrian flow in open environment

Project description

Pred_in_Open_Env是一个基于RNN的开放街区人流量预测模型
可进行三个任务:

--全点位未来 10/20/30 分钟人数预测及人数流向接口

参数1为currentTime,其含义为当前时间,需按照以下格式(yyyy-MM-dd HH:mm:ss)

参数2为forecastDuration,含义为预测的时间,可选择(10,20,30)三个时段

可变参数:
step:预测时间步数
to_GPU:是否加载到GPU训练
update:本次训练是否更新并保存历史平均值与模型参数
运行示例:

python run.py task1 --currentTime "2024-10-22 10:20:00" --forecastDuration 10

或者在run.py中添加语句

task1("2024-10-22 10:20:00",10)

--全点位在指定时间范围内实际人数与预测人数趋势

参数1为startTime,其含义为预测开始时间,需按照以下格式(yyyy-MM-dd HH:mm:ss)

参数2为endTime,其含义为预测结束时间,需按照以下格式(yyyy-MM-dd HH:mm:ss)

参数3为duration,含义为指定数据时间间隔,10/20/30,表示返回数据的时间间隔为10/20/30分钟

可变参数:
to_GPU:是否加载到GPU训练
update:本次训练是否更新并保存历史平均值与模型参数
运行示例:

python run.py task2 --startTime "2024-10-22 10:20:00" --endTime "2024-10-22 15:20:00" --duration 10

或者在run.py中添加语句

task2("2024-10-22 10:20:00","2024-10-22 15:20:00",10)

--指定点位指定时间范围内实际人数与预测人数趋势

参数1为startTime,其含义为预测开始时间,需按照以下格式(yyyy-MM-dd HH:mm:ss)

参数2为endTime,其含义为预测结束时间,需按照以下格式(yyyy-MM-dd HH:mm:ss)

参数3为duration,含义为指定数据时间间隔,10/20/30,表示返回数据的时间间隔为10/20/30分钟

参数4为id,其含义为指定点位序号,在1~10选择

可变参数:
to_GPU:是否加载到GPU训练
update:本次训练是否更新并保存历史平均值与模型参数
运行示例:

python run.py task3 --startTime "2024-10-22 10:20:00" --endTime "2024-10-22 15:20:00" --duration 10 --id 1

或者在run.py中添加语句

task3("2024-10-22 10:20:00","2024-10-22 15:20:00",10,1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Pred_in_Open_Env-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Pred_in_Open_Env-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file Pred_in_Open_Env-1.0.0.tar.gz.

File metadata

  • Download URL: Pred_in_Open_Env-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.1

File hashes

Hashes for Pred_in_Open_Env-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6f65d849d3c5e3177ca0d52a8e4120a5a147c0f5b81478d9ac351edbcdc9f63c
MD5 b798cd79805de5c8040dc5cb408e4c05
BLAKE2b-256 3be8d523f36411907e486206b0c31e59be8507412019978a92410b34345ad4b2

See more details on using hashes here.

File details

Details for the file Pred_in_Open_Env-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Pred_in_Open_Env-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 519cf10f7b5dd41a9833554fb8a156d3f6de3a9c378142b35c726d0b3c815443
MD5 971db2d64225af0885dd6a0f0d66eea7
BLAKE2b-256 269517646d7dc6f42d7a69b395918b3ca72bd3645cb2853a3102374f946ea5e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page