Incident data in Cape Town, South Africa has been provided by SANRAL Freeway Management System and travel times between zones in Cape Town have been provided by Uber Movement. The aim of this challenge is to forecast if an incident will occur for each hour of each day per 500m road segment along the major roadways in Cape Town for 1 January 2019 to 31 March 2019.
## Zindi-Uber-RANRAIL-Movement-Challenge
# Overview
This repo is a competition submission for the Zindi Uber Movement SANRAL Cape Town Challenge
. This solution, using Non-negative Matrix Factorization took first place in the competition hackathon and remained top of the public and private leaderboards for 4 months despite is simplicity. Please enjoy.
Incident data in Cape Town, South Africa has been provided by SANRAL Freeway Management System and travel times between zones in Cape Town have been provided by Uber Movement. The aim of this challenge is to forecast if an incident will occur for
each hour of each day per 500m road segment along the major roadways in Cape Town for 1 January 2019 to 31 March 2019.
## Installing dependencies
Dependencies should be declared in `src/requirements.txt` for pip installation and `src/environment.yml` for conda installation.
To install them, run:
```
kedro install
```
## Running Kedro
You can run your Kedro project with:
```
kedro run
```
### Working with Kedro from notebooks
In order to use notebooks in your Kedro project, you need to install Jupyter:
```
pip install jupyter
```
For using Jupyter Lab, you need to install it:
```
pip install jupyterlab
```
After installing Jupyter, you can start a local notebook server:
```
kedro jupyter notebook
```
You can also start Jupyter Lab:
```
kedro jupyter lab
```
And if you want to run an IPython session:
```
kedro ipython
```
Running Jupyter or IPython this way provides the following variables in
scope: `proj_dir`, `proj_name`, `conf`, `io`, `parameters` and `startup_error`.
#### Converting notebook cells to nodes in a Kedro project
Once you are happy with a notebook, you may want to move your code over into the Kedro project structure for the next stage in your development. This is done through a mixture of cell tagging and Kedro CLI commands.
By adding the `node` tag to a cell and running the command below, the cell's source code will be copied over to a …