{"id":13857097,"url":"https://github.com/Krisseck/hki-traffic-predict","last_synced_at":"2025-07-13T20:30:31.147Z","repository":{"id":140901072,"uuid":"137487397","full_name":"Krisseck/hki-traffic-predict","owner":"Krisseck","description":"Keras neural network to predict traffic in Helsinki","archived":false,"fork":false,"pushed_at":"2018-07-23T11:16:37.000Z","size":423,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-22T14:39:23.257Z","etag":null,"topics":["avoindata","helsinki","keras","numpy","open-data","python","traffic"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Krisseck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-06-15T12:53:52.000Z","updated_at":"2018-08-03T00:40:37.000Z","dependencies_parsed_at":"2024-02-09T01:26:15.285Z","dependency_job_id":"eb63cdf2-6c7d-4a12-9564-6a44beae1c66","html_url":"https://github.com/Krisseck/hki-traffic-predict","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Krisseck/hki-traffic-predict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisseck%2Fhki-traffic-predict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisseck%2Fhki-traffic-predict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisseck%2Fhki-traffic-predict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisseck%2Fhki-traffic-predict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krisseck","download_url":"https://codeload.github.com/Krisseck/hki-traffic-predict/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krisseck%2Fhki-traffic-predict/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265199604,"owners_count":23726683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avoindata","helsinki","keras","numpy","open-data","python","traffic"],"created_at":"2024-08-05T03:01:25.681Z","updated_at":"2025-07-13T20:30:30.717Z","avatar_url":"https://github.com/Krisseck.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# hki-traffic-predict\n\nKeras neural network to predict traffic in Helsinki\n\n## Installation\n\nNote: this project can only be run with Python 3.\n\n`pip install -r requirements.txt`\n\n## Usage\n\nThere are several scripts included:\n\n- **train_short_term.py** - Given the statistics for past 3 hours, make traffic predictions for the next 4 hours\n- **train_shorter_term.py** - Given just the current (now) traffic data, make traffic predictions for the next 4 hours\n\nCheck the `active_model` variable for which model will be used\n\nThen run:\n\n`python train_short_term.py`\n\nThat trains the model and saves it as the name of the script + active\\_model variable, like `short_term_dense_1.h5`\n\n## Results\n\n### short_term\n\nconv1d_1\n\n` - 0s - loss: 0.0271 - val_loss: 0.0263`\n\nconv1d_2\n\n` - 0s - loss: 0.0191 - val_loss: 0.0174`\n\nconv1d_3\n\n` - 0s - loss: 0.0151 - val_loss: 0.0149`\n\ndense_1\n\n` - 2s - loss: 0.0330 - val_loss: 0.0296`\n\nlstm_1\n\n` - 1s - loss: 0.0319 - val_loss: 0.0257`\n\nlstm_2\n\n` - 7s - loss: 0.0251 - val_loss: 0.0211`\n\nlstm_3\n\n` - 4s - loss: 0.0278 - val_loss: 0.0240`\n\n### shorter_term\n\nconv1d_1\n\n`1s 78us/step - loss: 0.0261 - val_loss: 0.0231`\n\nconv1d_2\n\n`1s 82us/step - loss: 0.0236 - val_loss: 0.0205`\n\ndense_1 \n\n`1s 59us/step - loss: 0.0335 - val_loss: 0.0289`\n\ndense_2\n\n`1s 59us/step - loss: 0.0294 - val_loss: 0.0248`\n\ndense_3\n\n`1s 63us/step - loss: 0.0343 - val_loss: 0.0302`\n\ndense_4\n\n`1s 70us/step - loss: 0.0211 - val_loss: 0.0163`\n\nlstm_1\n\n`1s 78us/step - loss: 0.0239 - val_loss: 0.0207`\n\nlstm_2\n\n`5s 358us/step - loss: 0.0314 - val_loss: 0.0279`\n\n## Other\n\nSource of CSV: https://hri.fi/data/dataset/liikennemaarat-helsingissa\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKrisseck%2Fhki-traffic-predict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKrisseck%2Fhki-traffic-predict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKrisseck%2Fhki-traffic-predict/lists"}