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.5.tar.gz (32.2 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.5-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thetaflow-0.0.5.tar.gz
  • Upload date:
  • Size: 32.2 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.5.tar.gz
Algorithm Hash digest
SHA256 4c1713ab29924dc054aed6b7838433c352cc2f13b3da3c33bde82bbc15c4532a
MD5 d32e36663f4fbafd30409bf162bf46b6
BLAKE2b-256 a248a52c21562a947354bd441fc5d57c6ee117ccb21a78b5090be0f6a40a7437

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thetaflow-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 31.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ba4b0b486b2f011edd99ef88b25a35e91e4e3a464f71763164d46fb6057f2e1d
MD5 dd35d21aa199d2fd36d8ff8d48b7673a
BLAKE2b-256 737722ce618524cd7f2a64677435233fa616e003752c39751b72c79477ca0bd5

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