Skip to main content

Shallow Gibbs Double Backpropagation

Project description

shallowgibbs-doublebackpropagation

Double Backpropagation Algorithm -- Implementation with the Shallow Gibbs Model

Double Backpropagation with the Shallow Gibbs Model

Installation

Install using pip pip install shallowgibbs-doublebackpropagation

Requirements

  • Python 3.6 or greater
  • scipy
  • tensorflow
  • pandas
  • numpy
  • joblib
  • scikit-learn

Usage

Import the Shallow Gibbs Double Backpropagation module import shallowgibbs.doublebackpropagation as SGDBS You need to load some initial predictions from the Shallow Gibbs Model, or any alike-Structured Model. The model requires as parameters: the weigths matrix (W), the biases (b), and the response covariance matrix (Sigma). The model framework backpropagation is updated per observation using:

MSE \left(y_{i}-\hat{y}_{i}\right)=\|y_{i}-\hat{y}_{e s t, i}\|^{2})

starting from \hat{\psi}_{0} with the equations:

\begin{gathered}
\hat{\psi}_{1, i} \longleftarrow \hat{\psi}_{0}-\epsilon_{\psi, 0} \frac{\partial M S E\left(y_{i}-\hat{y}_{e s t, i}\right)}{\partial \psi} \\
\hat{\psi}_{t, i} \longleftarrow \hat{\psi}_{t-1, i}-\epsilon_{\psi, t-1} \frac{\partial M S E\left(y_{i}-\hat{y}_{e s t}, i\right)}{\partial \psi}
\end{gathered}

where \psi is the set of parameters (w,b,Sigma) in our case. They are two additional equations that complete those above explained in reference [2] and well introduced in [1]. There are about the Training data, and test data predictions update. Please read reference [2] and the Jupyter Notebook for a guide note of usage and application.

Pypi Project Page

https://pypi.org/project/shallowgibbs-doublebackpropagation/1.0.3/

Notebook Page

https://github.com/kgalahassa/shallowgibbs-doublebackpropagation-notebook

References

[1] Murua, Alejandro, Alahassa, Nonvikan Karl-Augustt. The Shallow Gibbs Network, Double Backpropagation and Differential Machine learning, ScienceOpen Preprints (2021). https://www.scienceopen.com/document?vid=9aab283e-130f-4922-accb-20bef8faff9f

[2] Alejandro Murua, Nonvikan Karl-Augustt Alahassa. Double Back-Propagation and Differential Machine Learning. The Ninth Annual Canadian Statistics Student Conference (CSSC), Jun 2021, Ottawa, Canada. (hal-03265399) https://hal.archives-ouvertes.fr/hal-03265399

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

shallowgibbs-doublebackpropagation-1.0.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distributions

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

File details

Details for the file shallowgibbs-doublebackpropagation-1.0.3.tar.gz.

File metadata

  • Download URL: shallowgibbs-doublebackpropagation-1.0.3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for shallowgibbs-doublebackpropagation-1.0.3.tar.gz
Algorithm Hash digest
SHA256 31d12ba19a5c281fbeb6f3d479aecb30dc9eef5722e3df80aff595831e88175d
MD5 9f7715ba578b98b923018bef7a673f19
BLAKE2b-256 3bd8c923ebcd635705369e5e89b57c87bed5081ae990c7c17c90cc5faa25a013

See more details on using hashes here.

File details

Details for the file shallowgibbs_doublebackpropagation-1.0.3-py3.7.egg.

File metadata

  • Download URL: shallowgibbs_doublebackpropagation-1.0.3-py3.7.egg
  • Upload date:
  • Size: 11.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for shallowgibbs_doublebackpropagation-1.0.3-py3.7.egg
Algorithm Hash digest
SHA256 ddd726b4aae2fffb52c2f328dc35dde2cf0dfd2b01eab4bc9191debaebeae6e3
MD5 b6dd7d6da93e24e58d77bcd46b6ba6e9
BLAKE2b-256 9825c66550b257c2ca95339cd1b6e3dd1ca6c35794aef6f560f9f7267ae9968f

See more details on using hashes here.

File details

Details for the file shallowgibbs_doublebackpropagation-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: shallowgibbs_doublebackpropagation-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for shallowgibbs_doublebackpropagation-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 784b639362932a7cc23de98cbeb249fedbedfd6d75847b5b69afefb6a1882b9b
MD5 fb95e3dac17ae5aa0886ee382df02836
BLAKE2b-256 4bb7e20794c9ae8dcde1b846e4cb96e545bd6f6fdc32ec614c6e6a23bd64e84f

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