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.2/
Notebook Page
https://github.com/kgalahassa/shallowgibbs-doublebackpropagation-notebook
References
[1] Muua, 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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shallowgibbs-doublebackpropagation-1.0.2.tar.gz.
File metadata
- Download URL: shallowgibbs-doublebackpropagation-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
497253746d377f05aaca5e2c79924a551d12c7d2b009628966d7c0d67d88337d
|
|
| MD5 |
c81412f7784be2df799b5ca6f6452b77
|
|
| BLAKE2b-256 |
631831d5313d8ddc436ada6e7f675ea542ba050af7353a7ed339c75564a4d8c7
|
File details
Details for the file shallowgibbs_doublebackpropagation-1.0.2-py3.7.egg.
File metadata
- Download URL: shallowgibbs_doublebackpropagation-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c39429ddeb370dd9dfa1e4b8b4e85386503024be5f16ececf6b6a2b817fd593a
|
|
| MD5 |
d79918021c10ee2c5299ca31ca5a88d7
|
|
| BLAKE2b-256 |
3fafcbea3e35cf21d345b4b1cd41ceac29f3cc08f85d7f77a492b8d7a4946a92
|
File details
Details for the file shallowgibbs_doublebackpropagation-1.0.2-py3-none-any.whl.
File metadata
- Download URL: shallowgibbs_doublebackpropagation-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c5a13a51a0a63de8b436c48ff53ab2cae4bb3ade8930bcace839f354b375558
|
|
| MD5 |
a3771caa90d91cb0e4fe7191e26dbc82
|
|
| BLAKE2b-256 |
d91602f02414c9a91cf727a58e8aab405e6b333f5d905c78971c4d034d3f95c0
|