Installation¶
Requirements¶
MATLAB R2017a or higher is required, but newer versions are recommended.
The following MATLAB toolboxes are needed:
- Signal Processing Toolbox
- Statistics and Machine Learning Toolbox
- Wavelet Toolbox
You can check which toolboxes are currently installed by running the ver command in
the MATLAB Command Window.
Downloading MODA¶
As a user, download a zip of the code:
- Click here to download the code
as a
.zipfile. - Extract the zip file to a desired location.
- For simplicity of instructions, rename the folder to
MODA.
As a developer, clone the repository instead so you can commit changes:
This downloads the code into a folder named MODA. See the
Developer Guide for git hook setup and contribution
workflow.
FastMODA (web app) requirements¶
FastMODA is a separate Python/Flask application under FastMODA/. It requires:
- Python 3.9+
- The packages listed in
FastMODA/requirements.txt - (Optional, for GPU-accelerated coherence/bispectrum/Bayesian analysis) a CUDA-capable GPU with PyTorch installed
Install and run it with:
By default it serves at http://localhost:5000. See
Using MODA → The Web App for a tour of the interface, and
API & Machine Learning for the REST API.
FastMODA as a Python library (pip)¶
To use the analyses from your own Python code without the web app, install the library:
pip install fastmoda # NumPy, SciPy and ruptures only
pip install "fastmoda[ml,mat73]" # plus the classifiers and MATLAB v7.3 files
It needs neither MATLAB nor a server. The legacy_* modules are ports of MODA's
MATLAB functions, checked against MODA's output. See
The Python Library for what each one does and how
closely it matches.
Next step¶
Continue to the Quickstart to load your first signal and run an analysis.