Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpecRecon

Small, cleaned-up project structure for the LMU AI lab notebook on model selection and spectral reconstruction.

Project Layout

specrecon/
|-- docs/
|   |-- figures/
|   |   |-- model-selection/
|   |   `-- spectral-reconstruction/
|   `-- reference/
|       `-- Spec_Recon_AI_lab.pdf
|-- notebooks/
|   `-- Vyron_AI_lab_SpecRecon.ipynb
|-- src/
|   `-- specrecon/
|       |-- __init__.py
|       |-- plotting.py
|       |-- polynomial.py
|       |-- sampling.py
|       |-- spectral.py
|       `-- toy_data.py
|-- .gitignore
`-- pyproject.toml

Python Modules

specrecon.toy_data

  • Generates the toy regression dataset used in the model-selection section.

specrecon.polynomial

  • Polynomial fitting utilities.
  • Vandermonde design-matrix construction.
  • Gaussian log-likelihood.
  • Bayesian posterior coefficients and polynomial-model evidence.

specrecon.plotting

  • Plot helpers extracted from the notebook.
  • Keeps visualization code separate from the numerical routines.

specrecon.spectral

  • Frequency-grid construction.
  • RBF prior kernel helpers.
  • Response-matrix construction.
  • Spectral marginal likelihood and posterior helper utilities.

specrecon.sampling

  • Sequential posterior updates.
  • Adaptive sampling loop.
  • Random sampling loop.

Notes

  • The notebook is still kept in notebooks/ as the main exploratory document.
  • Reusable Python code has been pulled into src/specrecon/ so the project is no longer notebook-only.
  • The package uses clearer ASCII function names internally, while keeping a few notebook-style aliases for compatibility.
  • pyproject.toml defines a minimal installable package plus optional extras for plotting and notebook work.
  • The figure outputs and the PDF reference were moved out of the repository root to keep the top-level layout focused.
  • The notebook expects additional experiment data such as interferogram_spectrum.npz, but that file is not present in this repository.

Install

pip install -e .

Install notebook-related dependencies if you want to rerun the notebook:

pip install -e .[notebook]

About

Project form AI lab of University of Munich on spectroscopy reconstruction

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages