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
""" Python implementation of the OASIS algorithm. | |
Graham Taylor | |
Based on Matlab implementation of: | |
Chechik, Gal, et al. | |
"Large scale online learning of image similarity through ranking." | |
The Journal of Machine Learning Research 11 (2010): 1109-1135. | |
""" | |
from __future__ import division |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" Theano CRBM implementation. | |
For details, see: | |
Taylor GW, Hinton GE, Roweis ST. Modeling Human Motion Using Binary Latent Variables. | |
In: Advances in Neural Information Processing Systems 19. MIT Press; 2007. pp. 1345–1352. | |
Sample data: | |
https://uoguelphca-my.sharepoint.com/:u:/g/personal/gwtaylor_uoguelph_ca/EfJARkZuiX1JmwMKQxQqKJMBaMBUNOcF83FW_n9gk7OIbg?e=fnCjet | |
@author Graham Taylor""" | |
import numpy |
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
(x86_64-apple-darwin10.8.0)dhcp0-176:Theano gwtaylor$ THEANO_FLAGS=blas.ldflags=-lblas python theano/misc/check_blas.py | |
Some results that you can compare against. They were 10 executions | |
of gemm in float64 with matrices of shape 2000x2000 (M=N=K=2000). | |
All memory layout was in C order. | |
CPU tested: Xeon E5345(2.33Ghz, 8M L2 cache, 1333Mhz FSB), | |
Xeon E5430(2.66Ghz, 12M L2 cache, 1333Mhz FSB), | |
Xeon E5450(3Ghz, 12M L2 cache, 1333Mhz FSB), | |
Xeon X5560(2.8Ghz, 12M L2 cache, hyper-threads?) |