Skip to content

Instantly share code, notes, and snippets.

View HaveF's full-sized avatar
🎯
Focusing

HaveF HaveF

🎯
Focusing
View GitHub Profile
@HaveF
HaveF / python theano-nose --batch log
Created May 14, 2013 01:32
python theano-nose --batch
D:\OpenCourses\ufldl\ref\Theano\bin>python theano-nose --batch
Forcing DISTUTILS_USE_SDK=1
WARNING (theano.tensor.blas): Failed to import scipy.linalg.blas. Falling back o
n slower implementations (DLL load failed: 找不到指定的模块。)
####################
# COLLECTING TESTS #
####################
WARNING (theano.tensor.blas): Failed to import scipy.linalg.blas. Falling back o
n slower implementations (DLL load failed: 找不到指定的模块。)
@HaveF
HaveF / check_blas log
Created May 14, 2013 01:16
theano.misc.check_blas.test()
>>> import theano.misc.check_blas
>>> theano.misc.check_blas.test()
Some Theano flags:
blas.ldflags= -lopenblas
compiledir= R:\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_58_S
tepping_9_GenuineIntel-2.7.3-64
floatX= float64
device= cpu
Some environment variables:
MKL_NUM_THREADS= None
@HaveF
HaveF / 1nn.m
Created April 12, 2013 03:00
1nn -- pure matlab
% ... Xtrain/Xtest/ytrain/ytest/ntest/
tic
% sum of squares term for speed
XtrainSOS = sum(Xtrain.^2,2);
XtestSOS = sum(Xtest.^2,2);
ypred = zeros(ntest,1);
% Classify
dst = sqDistance(Xtest(:,:),Xtrain,XtestSOS(:,:),XtrainSOS);
[~,closest] = min(dst,[],2);