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.14.tar.gz (33.4 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.14-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thetaflow-0.0.14.tar.gz
  • Upload date:
  • Size: 33.4 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.14.tar.gz
Algorithm Hash digest
SHA256 08d4e898340bfea141a70e813ad5feaabc0f7d151411c4700db5266f59cbd08c
MD5 5471bf62535a832cb31e9c85c91d8f84
BLAKE2b-256 f09ef41390790c9152ecb55e2516b79e6fb9c3ff9ab263ec06d8107dace6ee58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thetaflow-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 32.9 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 da6ca1611a1ac4b4e5ea7f6703120e16a8d80c1eb73e4ed6d33a543ca5ebaf41
MD5 3c78d136a8195916e903a9314593c9f7
BLAKE2b-256 e3aad34d5d104d0e5d033ce72e54fe5f020fd0e79c00d8d24581d0f49f35a707

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