- 博客(21)
- 资源 (1)
- 收藏
- 关注
原创 Python 文档风格
逐渐完善命名风格:变量命名:类别 + "_" + 属性,e.g: file_name,file_list一般函数:"__" (两个)+ 动词(小写)+描述(首字母大写)排版风格:缩进:tab缩进,一律采用4空格代替一个tab注释:文件头:作者,时间,文档功能,模块框架,更新时间。类头:功能,设计思路函数头:功能,输入,输出,简要说明实现原理
2015-11-15 11:27:08
559
原创 受限玻尔兹曼机
深度学习通过模拟人类大脑的细胞组织结构以及工作方式来实现机器感知外部世界的目的。本文所要介绍的RBM(受限玻尔兹曼机),是DBN网络的基本结构。说起RBM又不得不提BM,附上两幅图,来说明二者区别。从下图可以看出来,BM层内存在连接节点不独立,表达能力强,但复杂度高;RBM层内无连接节点相互独立,复杂度低。RBM由可视层与隐含层组成。RBM通过优化网络参数,模拟输入样例的概
2015-09-27 11:22:45
1420
原创 日常积累------awk脚本
有必要将最近的一些技术整理整理,今天的主要整理目标:awk脚本awk 命令的名称来源于三位作者的首字母,awk命令主要用逐行扫描处理文本文件,并且能够一次读取多个文件。1.举一个简单的例子:awk -F '\t' '{print $1,$2,$NF}' a.txtawk 脚本每次读取a.txt文件中的一行,每一行按照回车符'\t'分割,$1对应分割后字符串数组的第一个字
2015-07-06 23:16:49
592
原创 Python 垃圾回收机制
python 中垃圾回收有三种策略:1.引用计数2.标记-清除.3.分代,收集引用计数,相当于C++中的智能指针,python中是以对象为一个单位,每个单位中会维护一个计数器,当定义,创建或引用变量时,计数器会加1,当删除变量时计数器会减一。当计数值为0的时候,释放内存。由于存在循环引用的问题,因此引入了标记-清除策略,该策略首先确定一个节点(当前不会被回收的节点,一般为全
2015-04-18 16:40:02
395
原创 Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:Digit st
2014-11-08 22:21:19
586
原创 Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((()))", "(()())", "(())()", "()(())", "()()
2014-11-08 22:19:30
675
原创 Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited numb
2014-11-08 22:18:52
505
原创 N-Queens
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solutions to the n-queens puzzle.
2014-11-08 22:16:39
514
原创 Remove Duplicates from Sorted List
题目:Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, return 1->2->3.提议
2014-11-08 22:15:10
495
转载 Median of Two Sorted Arrays
题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).题目大意:
2014-11-08 22:10:52
542
原创 Maximum Subarray
题目:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1,2,1,−5,4],the contiguous subarray [4,−1,
2014-11-08 22:06:43
571
转载 计算机视觉常用开源库
一、特征提取Feature Extraction:SIFT [1] [Demo program][SIFT Library] [VLFeat]PCA-SIFT [2] [Project]Affine-SIFT [3] [Project]SURF [4] [OpenSURF] [Matlab Wrapper]Affine
2014-11-08 21:58:07
2330
原创 数据库学习之架构搭建 Win7+Vmware Ubuntu+MySQL
目标:VS2010 通过 ODBC 访问 虚拟机上安装的MySQL数据库实验材料:Win7 32位、VS2010、Vmware Ubuntu、MySQL实验步骤:第一步:在Ubuntu上安装MySQL1、 实现虚拟机上网,网上教程很多,这里我是使用NET方式联网。2、下载安装MySQL,具体详见:Ubuntu下安装MySQL3、 Ubuntu下MySQL常见命令:MyS
2013-11-04 22:31:19
1448
原创 找个属于自己的路
今年刚毕业,并马上要开始研究生的生活,期待自己能在接下来的3年内,找到真实的自我,找到真正想走的路,继续努力。 这个暑假制定的计划:练练吉他,学习学习英语,复习复习基础课程,看看论文。希望我能够坚持。
2013-07-20 08:29:45
662
Ransac
2014-05-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人