码迷,mamicode.com
首页 > 其他好文
DeepLearning tutorial(5)CNN卷积神经网络应用于人脸识别(详细流程+代码实现)
本文主要讲解将CNN应用于人脸识别的流程,程序基于python+numpy+theano+PIL开发,采用类似LeNet5的CNN模型,应用于olivettifaces人脸数据库,实现人脸识别的功能,模型的误差降到了5%以下。本程序只是个人学习过程的一个toy implement,模型可能存在overfitting,因为样本小,这一点也无从验证。 但是,本文意在理清程序开发CNN模型的具体步骤,特别是针对图像识别,从拿到图像数据库,到实现一个针对这个图像数据库的CNN模型,我觉得本文对这些流程的实现具有参考...
分类:其他好文   时间:2015-01-30 09:13:55    阅读次数:452
DevExpress Gridcontrol 表格头复选框 全选全不选
新建窗体 拖一个Gridcontrol 添加两列 col1,col2 public partial class XtraForm2 : DevExpress.XtraEditors.XtraForm { public XtraForm2() { InitializeComponent(); } pr...
分类:其他好文   时间:2015-01-30 09:13:12    阅读次数:835
CUDA C 编程指导(二):CUDA编程模型详解
CUDA编程模型详解 本文以vectorAdd为例,通过描述C在CUDA中的使用(vectorAdd这个例子可以在CUDA sample中找到。)来介绍CUDA编程模型的主要概念。CUDA C的进一步描述可以参考《Programming Interface》。 主要内容包括: 1、Kernels(核函数) 2、Thread Hierarchy(线程结构) 3、Memory Hierarc...
分类:其他好文   时间:2015-01-30 09:11:27    阅读次数:165
YT14-HDU-A+B(高精度小数)
Problem Description 话说,经过了漫长的一个多月,小明已经成长了许多,所以他改了一个名字叫“大明”。 这时他已经不是那个只会做100以内加法的那个“小明”了,现在他甚至会任意长度的正小数的加法。 现在,给你两个正的小数A和B,你的任务是代表大明计算出A+B的值。 Input 本题目包含多组测试数据,请处理到文件结束。 每一组测试数据在一行里面包含两...
分类:其他好文   时间:2015-01-30 09:11:28    阅读次数:148
100.Same Tree
#pragma once #include #include using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; bool isSameTree(TreeNode...
分类:其他好文   时间:2015-01-30 09:11:06    阅读次数:214
136.Single Number
Given an array of integers,every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement itwithout using extra m...
分类:其他好文   时间:2015-01-30 09:10:45    阅读次数:247
104.Maximum Depth of Binary Tree
Given a binary tree, findits maximum depth. The maximum depth is thenumber of nodes along the longest path from the root node down to the farthestleaf node.   可用递归,效率低。 这里用类似层次遍历的算法。设置一个队列和两个int变量...
分类:其他好文   时间:2015-01-30 09:10:56    阅读次数:261
171.Excel Sheet Column Number
Related toquestion Excel Sheet Column Title Given a columntitle as appear in an Excel sheet, return its corresponding column number. For example:     A-> 1     B-> 2     C-> 3    ...     Z-> ...
分类:其他好文   时间:2015-01-30 09:10:45    阅读次数:205
122.Best Time to Buy and Sell Stock II
Say you have an array for which the ith element isthe price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as manytransactions as you like (ie, buy one an...
分类:其他好文   时间:2015-01-30 09:11:13    阅读次数:176
HDU 2767 强连通缩点
如A能证明B ,就建一条有向边A->B。对于一个能互相证明的一个集合,必然每个2个点都能相互到达,这样的一个集合就是一个强连通集合。我们可以把他们看成一个点,剩下的就是一个DAG图了。 如要都能相互到达,每个点必然出度 >=1, 入度>1 .。所以统计有多少没有入度的点和多少没有出度的点,他们中最大的就是需要添加的边了。 VIEW CODE #include #include #include...
分类:其他好文   时间:2015-01-30 09:10:52    阅读次数:203
大小端的独特判定方法
看见这个判定方法很特别,收集了~ int i=1; char *p=(char *)&i; if(*p==1) printf("1"); else printf("2");        大小端存储问题,如果小端方式中(i占至少两个字节的长度)则i所分配的内存最小地址那个字节中就存着1,其他字节...
分类:其他好文   时间:2015-01-30 09:11:30    阅读次数:183
创建tabBarControllers视图控制器的方法
//数组中放各个视图控制器的类名 NSArray *controllersName = [NSArray arrayWithObjects:@"NewsViewController",@"MarketViewController",@"VideoViewController",@"PictureViewController",@"SettingViewController",nil]; NSS...
分类:其他好文   时间:2015-01-30 09:11:31    阅读次数:171
UICollectionViewController使用问题之UICollectionViewFlowLayout
1.  问题描述: 最近在做项目的时候,用到了UICollectionViewController控制器,但是在显示数据的时候,出现了如下的警告信息: “ 2015-01-28 21:55:17.790 Demo[636:9351] the behavior of the UICollectionViewFlowLayout is notdefined because: 2015-...
分类:其他好文   时间:2015-01-30 09:08:30    阅读次数:132
HDU 1728 逃离迷宫 DFS+标记转弯数+优化
逃离迷宫。一晚上的青春没了。...
分类:其他好文   时间:2015-01-30 09:10:42    阅读次数:237
2015.1.29试题笔记
设在内存中有P1,P2,P3三道程序,并按照P1,P2,P3的优先级次序运行,其中内部计算和IO操作时间由下表给出(CPU计算和IO资源都只能同时由一个程序占用):P1:计算60ms---》IO 80ms---》计算20ms P2:计算120ms---》IO 40ms---》计算40ms P3:计算40ms---》IO 80ms---》计算40ms 并行完成三道程序比单道运行节省的时间是(160m...
分类:其他好文   时间:2015-01-30 09:08:09    阅读次数:262
COM编程入门不得不看的文章:第二部分 深入COM服务器
原文:http://www.codeproject.com/Articles/901/Introduction-to-COM-Part-II-Behind-the-Scenes-of-a         本文为刚刚接触COM的程序员提供编程指南,解释COM服务器内幕以及如何用C++编写自己的接口(前一篇博文主要是COM编程的入门:COM编程入门不得不看的文章 :第一部分 什么是COM,如...
分类:其他好文   时间:2015-01-30 09:09:31    阅读次数:402
COM组件设计与应用(一)——起源及复合文件
本文摘自:http://blog.vckbase.com/teacheryang/archive/2005/06/27/8883.html 一、前言   公元一九九五年某个夜黑风高的晚上,我的一位老师跟我说:“小杨呀,以后写程序就和搭积木一样啦。你赶快学习一些OLE的技术吧......”,当时我心里就寻思 :“开什么玩笑?搭积木方式写程序?再过100年吧......”,但作为一名听话的...
分类:其他好文   时间:2015-01-30 09:08:58    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!