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.0/
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
Hashes for shallowgibbs-doublebackpropagation-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e835d348c8041501187c015dcc722eb381101480c99ca8d5340d527167b6e5f |
|
MD5 | fd5a6011b0be89e94f1119d8a2b8799c |
|
BLAKE2b-256 | f5738947bfbf2ae3d6778268ba1382db385e3476a729fdd6c7f94e0ca3ee79b8 |
Hashes for shallowgibbs_doublebackpropagation-1.0.0-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dae894771e708446d3a4b4de1626e9ed16d088b7004a8c028e629e39f51b02d |
|
MD5 | dbbd106573e42475cfcd7053eca7541f |
|
BLAKE2b-256 | a93ec434f4d6bae53c15fa204c8cf2b60a6be5056a96f97ed4d980b62f64baba |
Hashes for shallowgibbs_doublebackpropagation-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968c0274d626c30aab1f82fcdbb1f59dc9dbcb833f09b35b3471f941aaaf31a4 |
|
MD5 | d020f6458cc6ae88153fd04d7c5b5be0 |
|
BLAKE2b-256 | 3d00b56756460e40b0cf1b7c751d8006cd68537863118f47c690c5b513ac818c |