semvec/pypi-packages huggingface dataset:
cortexflow 2.0.1
A Machine learning library
Requires Python: >=3.6

# Bayesian Linear Regression with Hamiltonian Monte Carlo (HMC)

This repository contains code for performing Bayesian Linear Regression using Hamiltonian Monte Carlo (HMC) sampling. Bayesian Linear Regression is a probabilistic approach to regression modeling that provides uncertainty estimates for the model parameters. HMC is a Markov Chain Monte Carlo (MCMC) method that uses Hamiltonian dynamics to generate samples from the posterior distribution.

## Overview

Bayesian Linear Regression with HMC combines the flexibility of Bayesian modeling with the efficiency of HMC sampling to estimate the posterior distribution of regression coefficients. This allows for principled uncertainty quantification and robust inference in regression tasks.

## How to Use

To use Bayesian Linear Regression with HMC, follow these steps:

1. **Prepare Your Data**: Ensure your input features `X` and target variable `y` are in the appropriate format. `X` should be a 2D numpy array where each row represents a sample and each column represents a feature. `y` should be a 1D numpy array containing the corresponding target values.

2. **Instantiate the Model**: Create an instance of the `BayesianLinearRegression` class.

3. **Perform Regression**: Call the `hamiltonian_monte_carlo` method of the model instance, passing your data and desired parameters such as the number of samples (`num_samples`) and leapfrog steps (`L`).

4. **Analyze Results**: Analyze the posterior samples obtained from the regression to make predictions, compute metrics, and assess uncertainty.

## Theoretical Details

- **Bayesian Linear Regression**: Bayesian Linear Regression is a probabilistic approach to regression modeling that treats the regression coefficients as random variables and estimates their posterior distribution using Bayes' theorem.

- **Hamiltonian Monte Carlo (HMC)**: HMC is a Markov Chain Monte Carlo (MCMC) method that simulates Hamiltonian dynamics to sample from complex probability distributions. It employs a "Hamiltonian" function that combines the potential energy (negative log-posterior) and kinetic energy to guide the exploration of the parameter space.

## Requirements

- Python 3.x
- NumPy
- SciPy

## References

- Neal, R. M. (2011). MCMC using Hamiltonian dynamics. Handbook of Markov Chain Monte Carlo, 2(11), 2.
- Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., & Rubin, D. B. (2013). Bayesian Data Analysis (3rd ed.). Chapman and Hall/CRC.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
django-htmx-ui-adminlte 0.1.15
AdminLTE - Django - HTMX - Jinja powerful combination library
Requires Python: >=3.11

# Intro

## What is `django_htmx_ui_adminlte` library

This library uses the [AdminLTE](https://adminlte.io/docs/3.2/index.html) template,
combined with the [django_htmx_ui library](https://pypi.org/project/django-htmx-ui/)
to include [django](https://www.djangoproject.com/), [htmx](https://htmx.org/),
[django-htmx](https://django-htmx.readthedocs.io/en/latest/) and
[jinja](https://jinja.palletsprojects.com/en/3.1.x/) capabilities.

This is under heavy development right now.