Skip to main content

Bridging the gap between Statistical Inference and Neural Networks

Project description

Thetaflow

Bridging the gap between Statistical Inference and Deep Learning.

Thetaflow is a Python package built on top of TensorFlow/Keras designed to fully integrate statistical modeling with neural network components. It allows researchers and data scientists to define any statistical model where parameters can be:

Dynamic: Modeled as outputs of a complex neural network. Static: Treated as independent, learnable weights (standard statistical coefficients).

It generalizes Maximum Likelihood Estimation (MLE) for a massive class of models, acting as a flexible optimizer that brings the power of backpropagation to rigorous statistical inference.

Key Features

  • Flexible Parameter Definition: seamless mixing of deep learning outputs and scalar statistical parameters.
  • Custom Likelihoods: Define any probability density function (PDF) or mass function (PMF) as your objective.
  • TensorFlow/Keras Backend: leverages hardware acceleration (GPU/TPU) and automatic differentiation for complex optimization landscapes.
  • General Optimizer: Solves for the Maximum Likelihood Estimate (MLE) across arbitrary model architectures.

Installation

The easiest and recommended way to install thetaflow is directly from PyPI using pip:

pip install thetaflow

Examples

An example application applying the standard simple linear regression model can be seen in the examples directory. I plan on adding further documentation! :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thetaflow-0.0.12.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thetaflow-0.0.12-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file thetaflow-0.0.12.tar.gz.

File metadata

  • Download URL: thetaflow-0.0.12.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.17

File hashes

Hashes for thetaflow-0.0.12.tar.gz
Algorithm Hash digest
SHA256 47f3b8a4c23ff75f5f7ae0e2a98dd1645660ddadb4d4a2e9d02ba259f91db200
MD5 fb7b3b9a142a856e2b85500a38376c7d
BLAKE2b-256 ec4afbfc6b3574c81e215c7c4fb3cb35957e6c14d2802b1d5a08ab454b84278e

See more details on using hashes here.

File details

Details for the file thetaflow-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: thetaflow-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.17

File hashes

Hashes for thetaflow-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a6499689273e4dc3e2ea90fa1d3bb0cb3a011c1873196557504970272b75fc46
MD5 85c974450ac6ac09865fe515ecee55c8
BLAKE2b-256 0ac7f4f062ec70a142bac0b9710ea545e9704bbc58f8c93f68e75f5d9b922d9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page