PQ-源码解析 PQLoad data and set parameterLearnEncodeSearchIVFPQLoad data and set parameterLearnEncodeSearchPQLoad data and set parameter第一步是载入数据和设定参数。 载入数据,random生成数据可以不需要数据集。 以下是载入数据的代码:% Generate or l
Cuda学习笔记 CUDA C简介基本操作读取GPU的信息CUDA C并行编程向量和Julia集线程协作点积的计算申请共享内存每个线程单独工作多个线程协同工作保存归约结果总的代码CUDA C简介基本操作以下是调用GPU的基本操作代码。代码作用是将两个数相加。 其中要注意的是: 1. cudaMemcpy() 函数前两个参数传递的是地址。 2. cudaMalloc() 函数原型为:cud
笔记:ITQ IntroductionRelated WorksApproximate Nearest Neighbor SearchSimilarity Preserving Binary CodesITQ代码Introductionlarge-scale image retrieval的主要挑战: 1. define similarity between images(图片间相似度定义-cv的基础
windos安装tensorflow AnacondaCUDATensorflowAnaconda用清华的源下载,由于TensorFlow supports only 64-bit Python 3.5 on Windows.所以载的是Anaconda3-4.2.0-Windows-x86_64.exe版本。 链接:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/CUDA
论文笔记:MatchNet: Unifying Feature and Metric Learning for Patch-Based Matching AbstractIntroductionRelated workNetwork architectureTraining and predictionSampling in trainingA two-stage prediction pipelineExperimentsSummaryAbstractMatchNet:一个用来从patches中提取特征的深度卷积网络 + 一个用来比
CS231n Module 1 Image ClassificationIntroductionNearest Neighbor ClassifierK-Nearest Neighbor ClassifierSummaryApplying kNN in practiceLinear ClassificationImage ClassificationIntroduction这个部分介绍了图片识别问题。图片识别问题是将一张
CS231n Module 0 Python Numpy TutorialPythonBasic data typesFunctionsClassesNumpyArraysPython / Numpy TutorialPython这里介绍了python,并举了一个快排的例子,这个快排写的挺好看的。def quicksort(arr): if len(arr) <= 1: return arr
Opencv2.4和Opencv3.1安装总结 Opencv24Opencv31Opencv2.4之前安装的是Opencv2.4版本,也在这里做一个总结。1.下载Opencv源码:http://opencv.org/downloads.html 2.4版本的。这一步也可以用git clone。2.安装依赖:sudo apt-get install build-essential cmake libgtk2.0-dev pkg-config Py
CS229 ProblemSet记录 PS0Gradients and HessiansPositive definite matricesEigenvectors eigenvalues and the spectral theoremPS1Logistic regressionPoisson regression and the exponential familyGaussian discriminant analy
Tensorflow学习笔记 InstallBasic Usage构建图交互式方法变量MNIST TrainingMNIST DataSoftmaxCNNTensorFlow运作方式InferenceLossTensorBoardInstallUbuntu14.04:#安装pipsudo apt-get install python-pip python-dev #安装tensorflowsudo p
Theano学习笔记 InstallInstall在ubuntu14.04上安装Theano,两句命令就够了:sudo apt-get install python3-numpy python3-scipy python3-dev python3-pip python3-nose g++ libopenblas-dev gitsudo pip install Theano 没有报错就是安装成功了。continue………
Caffe学习笔记 Blobs Layers and Nets anatomy of a Caffe modelBlob storage and communicationImplementation DetailsLayer computation and connectionsNet definition and operationModel formatForward and BackwardLos
Neural Networks and Deep Learning 资料整理 CH1 Using neural nets to recognize handwritten digits1. RNN的wiki:recurrent neural networks2. Cauchy-Schwarz不等式的wiki:Cauchy-Schwarz inequalityCH2 How the backpropagation algor
Neural Networks and Deep Learning CH6 Introducing convolutional networksLocal receptive fieldsShared weights and biasesPooling layersPut it all togetherConvolutional neural networks in practiceThe code for our convolutional networks
Neural Networks and Deep Learning CH5 The vanishing gradient problemWhats causing the vanishing gradient problem Unstable gradients in deep neural netsWhy the vanishing gradient problem occursThe exploding gradient problemThe unstable
Neural Networks and Deep Learning CH4 Two caveatsUniversality with one input and one outputMany input variablesExtension beyond sigmoid neurons这一章比较简单,主要证明了为什么神经网络可以计算任意的连续函数。无论这个函数是什么,总存在一个神经网络,对任意的输入xx,可以从网络中得到近似的f(x)f(x)。当函数有多个输入多个输出
Neural Networks and Deep Learning CH3 The cross-entropy cost functionIntroducing the cross-entropy cost functionUsing the cross-entropy to classify MNIST digitsWhat does the cross-entropy mean Where does it come fromSoftmaxOverfitting
Neural Networks and Deep Learning CH2 Warm up a fast matrix-based approach to computing the output from a neural networkThe two assumptions we need about the cost functionThe Hadamard productBackpropagationThe four fundamental equation
leetcode刷题记录 1. Two Sum (2016.10.11)题意:给一组数,寻找其中和为target的两个数,返回他们的index。解法:暴力可过,map可过(技巧是边维护边遍历,这样可以剔除相同数不同index的情况),set可过(也是边维护边遍历)。2. Add Two Numbers (2016.10.12)题意:将两个用链表反向存储的数做加法,求结果。e.g l1: