- config.py contains global variables set to current dataset. Some variables are constant due to the dataset, e.g. there are 260855 links and 8760 hours, while other variables can be modified by the user, like the rank of the decomposition and if the user wants to run the seeded or randomized algorithm.
-\_\_init\_\_.py initializes logger
- The cell running cSNMF.factorize() uses global variables set in config.py, but can be overriden for experimentation.
- The W and H matrices are saved as txt files to MultiplicativeAlgorithm/.
\ No newline at end of file
- The W and H matrices are saved as txt files to MultiplicativeAlgorithm/.
5. If desired, run ExtremeEvents.ipynb and Visualizations.ipynb to analyze factorizations.
- ExtremeEvents captures days and signatures that deviate from median behavior. It generates X.txt, a matrix of extreme events.
- Visualizations maps and plots temporal and spatial trends, e.g. map of which links use signature i, plot of every (Monday, Tuesday, etc.)layered for each signature.