Skip to content

Latest commit

 

History

History

cluster

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

USEEIO matrix files

Developed by Honglin, 2024.

Uses USEEIO matrix files from:

/io/build/api /OpenFootprint/impacts

Network Graph Charts - Sankey - Chord

Run Jupyter

Run in your webroot so you can access files in the io repo. Creates a virtual environment and installs libraries.

python3 -m venv env &&
source env/bin/activate &&
pip install pandas &&
pip install tqdm &&
pip install scikit-learn &&
pip install matplotlib &&
pip install numpy &&
pip install notebook &&
pip install --upgrade nbconvert &&
jupyter-notebook

clustering.ipynb

For each state we extract information from matrix.D for subsequent clustering, and reshape the 2D matrix into an 1D vector.

We assign to 3 clusters (using the dimension-reduced vectorized D-matrix) to cluster all states.

Learn more about the state matrix input-output files.