https://github.com/amsterdam-music-lab/gmth23-bayes-workshop
Code and data for the GMTH '23 workshop on Bayesian modelling
https://github.com/amsterdam-music-lab/gmth23-bayes-workshop
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.0%) to scientific vocabulary
Repository
Code and data for the GMTH '23 workshop on Bayesian modelling
Basic Info
- Host: GitHub
- Owner: Amsterdam-Music-Lab
- License: mit
- Language: Jupyter Notebook
- Default Branch: main
- Size: 28.9 MB
Statistics
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
Bayesian Corpus Studies
Code and data for the workshops on Bayesian modelling and probabilistic programming at the GMTH congress (September 2023), and in Würzburg (February 2024).
The repo is organized as follows:
- The directory presentation contains
- a brief introduction to Bayesian corpus studies in German (from GMTH 2023),
- a set of longer presentations in English (from Würzburg 2024).
- regularity.ipynb contains a simple introduction to PyMC
using a model of rhythmic regularity introduced in the longer slides
- intervals_exercise.ipynb
contains an extended exercise using models of interval sizes in polyphonic music.
The solution to this exercise can be found in intervals_exercise_solution.ipynb.
- intervals_complete.ipynb
contains an additional model comparison that is not part of the exercise notebook.
- The dataset bigrams.tsv has been derived from the
aligned Bach chorale dataset.
If you want to know how exactly the bigrams are computed,
have a look at prepare_data.py.
If you are interested in using probabilistic models and Bayesian statistics for musical research (e.g. for corpus studies or computational models of music theory), feel free to get in touch with: - Christoph Finkensiep (c.finkensiep@uva.nl)
Getting Started
The notebooks in this repository can be run in two ways, either using Google Colab or using a local Python/Jupyter installation.
On Colab
- Download the notebook that you want to use (or clone the repository using git).
- Go to https://colab.research.google.com/ and upload the notebook.
- You should be able to use the notebook right away as Colab comes with all required dependencies.
On your computer
This requires a local installation of Python and Jupyter.
- Clone (or download) this repository
- Install the dependencies. The recommended way to do this is to
- create a new virtual environment using
venv - install the dependencies from
requirements.txt - install an IPython kernel from within the environment
$ cd gmth23-bayes-workshop $ python -m venv env $ source env/bin/activate (env)$ pip install -r requirements.txt (env)$ python -m ipykernel install --user --name gmth-bayes-tutorial
- create a new virtual environment using
- Start Jupyter (notebook or lab) and open the notebook you want to work on. Make sure that the notebook uses the kernel that you installed in the previous step.
Owner
- Name: Amsterdam Music Lab
- Login: Amsterdam-Music-Lab
- Kind: organization
- Email: j.a.burgoyne@uva.nl
- Location: University of Amsterdam, The Netherlands
- Repositories: 1
- Profile: https://github.com/Amsterdam-Music-Lab
Amsterdam Music Lab code repositories