This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ------------------------------------------------------- | |
## Simpel implmentation of the | |
## Particle Gibbs with Ancestral Sampling | |
## proposed on Lindsten et. al 2014 | |
## | |
## THIS IS CODE WAS NOT TESTED OR OPTIMIZED!!! Do not use it for anything | |
## importnat without checking. | |
## | |
## July 16, 2025 -- Andreas Scheidegger | |
## andreas.scheidegger@eawag.ch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ------------------------------------------------------- | |
## | |
## Elements to implement a spatial transformer network | |
## | |
## See: Jaderberg, M., Simonyan, K., Zisserman, A., and Kavukcuoglu, | |
## K. (2015) Spatial Transformer Networks. arXiv:1506.02025 | |
## | |
## February 9, 2016 -- Andreas Scheidegger | |
## andreas.scheidegger@eawag.ch | |
## ------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use_cuda = false | |
using Mocha | |
srand(12345678) | |
############################################################ | |
# Prepare Random Data | |
############################################################ |