Skip to content

Add horseshoe-prior MCMC demo notebook for Bayesian feature selection#2

Merged
MacroMagic merged 6 commits into
mainfrom
copilot/add-demo-notebook-horseshoe-prior
Apr 19, 2026
Merged

Add horseshoe-prior MCMC demo notebook for Bayesian feature selection#2
MacroMagic merged 6 commits into
mainfrom
copilot/add-demo-notebook-horseshoe-prior

Conversation

Copilot AI commented Apr 19, 2026

Copy link
Copy Markdown
Contributor
  • Explore repository structure, APIs, and existing docs/tutorials
  • Run baseline lint/tests to identify pre-existing issues
  • Create a new demo folder with a comprehensive MCMC-focused horseshoe prior notebook
  • Include markdown explanations of Bayesian GLM + regularized horseshoe math with equations and intuition for sparsity
  • Add runnable simulated-data workflow showing model fit, feature selection, GPU/CPU setup, and ArviZ diagnostics/visualizations
  • Add a hands-on exercises section with creative challenge prompts highlighting strengths/limitations of the method
  • Execute the notebook end-to-end and fix any issues that arise
  • Re-run relevant checks for changed files and summarize any remaining unrelated baseline failures
  • Run parallel validation and address any actionable findings
  • Create a pull request for review

@MacroMagic
MacroMagic requested review from Copilot and removed request for Copilot April 19, 2026 00:55
@MacroMagic
MacroMagic marked this pull request as ready for review April 19, 2026 00:56
@MacroMagic
MacroMagic requested a review from Copilot April 19, 2026 01:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new demo notebook that walks through Bayesian feature selection using a regularized horseshoe prior with MCMC, aligned with the library’s HorseshoeGLM + InferenceConfig APIs and using ArviZ for diagnostics/visualization.

Changes:

  • Introduces an end-to-end simulated-data MCMC workflow using HorseshoeGLM (fit, feature importance, recovery metrics).
  • Adds ArviZ-based convergence diagnostics and posterior visualization for global parameters and selected coefficients.
  • Includes an optional real-data (breast cancer) template plus exercises and takeaways.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread demo/horseshoe_mcmc_feature_selection_demo.ipynb Outdated
Comment thread demo/horseshoe_mcmc_feature_selection_demo.ipynb Outdated
Comment thread demo/horseshoe_mcmc_feature_selection_demo.ipynb
MacroMagic and others added 2 commits April 18, 2026 21:12
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MacroMagic
MacroMagic merged commit b0c010e into main Apr 19, 2026
1 of 5 checks passed
@MacroMagic
MacroMagic deleted the copilot/add-demo-notebook-horseshoe-prior branch April 19, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants