Installation

This page contains the instructions about how to install Crash Severity Model

The package management tool conda is required for installing Crash Severity Model.

CONDA Installation

Crash Severity Model is a package manager which support multiple languages including python. It can be installed as below:

  • step 1: Download miniconda from [here]

  • step 2: the package can be installed as bash Miniconda3-latest-Linux-x86_64.sh, or following the instruction [here]

After the installation, CONDA environment can be activated using conda activate <env>

Crash Severity Model Installation

After conda, Crash Severity Model can be simply installed with the provided makefile in the repository:

export CONDA_BASE=<CONDA PATH>
make all

where CONDA_BASE is the path where the conda package is installed. For example, we can have export CONDA_BASE=~/Programs/miniconda3/.

The working environment then can be activated as:

conda activate crash_severity_model

Input data

The following dataset are required to be downloaded:

  • For model training: Crash Analysis System (CAS) data is required to be downloaded from the NZTA website

  • For prediction:

    • NZ Road Centreline (shapefile): The national road centre line is needed ([link])

    • NZ Road Slope (tiff): Road slope dataset ([link])

    • NZ Speed Limit Register (shapefile): Road speed limit dataset from NZTA ([link])

The above data must be placed in etc/data as:

The above locations can be adjusted within process/__init__.py.