The repository hosts the TMIP-EMAT framework that is used to run ODOT VE models built in VisionEval 3.0.
There are six directories contained in the repository:
- EMAT-Conda-Setup - The directory contains the yaml file emat_install.yml that can be used to create an emat conda environment. To create the environment use the command
conda env create -f emat_install.yml
- EMAT-VE-Configs - The directory contains two yaml files. The yaml file ve-model-config.yml is used to specify VE model configurations and the yaml file odot-otp-scope.yml is used to specify the scope i.e. the design elements of the experiments along with the measures that should be collected from a model run.
- EMAT-VE-Database - The directory will store the database that TMIP-EMAT will use to run the experiments and store the results.
- Scenario-Inputs - This directory contains scenario input files in sub-directories for each experiment parameter defined by the scope in odot-otp-scope.yml.
- Temporary - TMIP-EMAT creates a temporary directory to run experiments. This directory is used as a host for those temporary directories to make post TMIP-EMAT run cleanup easy.
In addition to the directories the repository contains following files in the root directory:
- emat_ve_wrapper.py - The python script that defines how TMIP interfaces with VisionEval models, setup scenarios, run scenarios, and collect results.
- extract_outputs.R - R script used with the VE model to extract the measures as defined in the scope odot-otp-scope.yml.
- ODOT-TMIP-METAMODEL.ipynb - The jupyter python notebook used to run and visualize TMIP-EMAT experiments.
- metamodel_variables.csv - This file contains a list (partial or complete) of variables collected from model runs to build the metamodel for.
The TMIP EMAT operates in python and interfaces with VisionEval. Thus, all the software requirements needed for TMIP-EMAT and VisionEval 3.0 should be met.
To run multiple scenarios/experiments in TMIP-EMAT:
-
Open Anaconda3 command prompt and activate the emat environment.
-
Navigate to the TMIP-EMAT directory EMAT_VE.
-
Enter the command
jupyter notebook
and press Enter. This will open a jupyter notbook in a browser and list all the files contained in the EMAT_VE directory. -
Within the jupyter notebook navigate to EMAT-VE-Configs directory and edit the following parameters in the ve-model-config.yml:
- base-model: This is the path to the model run that contains the datastore for base year. EMAT uses this model to load the results in all the model runs.
- r_library_path: This is the path to VisionEval R library that will be used to run all the VE models.
- r_runtime_path: This is the path to VisionEval runtime environment directory.
- r_executable: This is the location of R executable that will be used to run VE models.
-
Click on ODOT-TMIP-METAMODEL.ipynb. This will open the jupyter notbook.
-
Check the values of following parameters in the Cell Block 2:
- run_experiments: It's a logical value that determines whether to run multiple scenarios (True) or load the results from the database (False).
- database_name: A character value that tells the name of the database. If one doesn't exists then the notebook will create one. Note that if the notebook is creating the database then it cannot load results and the run_experiments should be set to True.
- model_scope_name: A character value that indicates the name of the model scope file that should be used to design the experiments.
- num_workers: An integer value that specifies the number of parallel processors to use to run scenarios.
- num_experiments: An integer value that specifies the number of scenarios to create.