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.1.tar.gz (83.8 MB 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.1-py3-none-any.whl (77.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Pred_in_Open_Env-1.0.1.tar.gz
  • Upload date:
  • Size: 83.8 MB
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 95dde529c81171830f21b70ff016dbe7427a18ec88437e14daa8d285ff77f6de
MD5 4c396f53b18609c44720e8d739f655a7
BLAKE2b-256 6c9b21c0913b034ea5c8821c1e137d07b4a4f5d74a0ca84346991c91799bf1ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Pred_in_Open_Env-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33f581e95266a64cb5d5063894dab309b9925d13d9e8f4d6271dac143c7d0505
MD5 ca74b20e9f84970785de16f112619c09
BLAKE2b-256 3cfafa01a963b40156b1cdc98c1dea44eec583b5bf12812c635746889520fad5

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