- 博客(15)
- 问答 (1)
- 收藏
- 关注
原创 POJ2965
Description The game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator. There are 16 handles on the refrigerator door. Every handle can
2016-09-28 21:39:41 503
原创 MatConvNet卷积神经网络(四)——用自己的数据训练
尝试过从Matconvnet官网上下载的已经训练好的神经网络之后,最近自己训练了能够识别果树上红苹果的神经网络。先上图。 下面分享一下经验。 以下内容看之前,希望已经阅读过Matconvnet的官方文档matconvnet-manual,或者对机器学习的一些概念、卷积神经网络的原理具备基本的了解。 现在进入正题。 构建自己的神经网络,需要完成以下三个部分: 1
2016-09-24 23:37:07 22849 72
转载 POJ1753
本题采用 DFS+ 枚举的方法 思路上需要注意的是: 1、要达到最后统一正反面的目标,中间走的每一步棋先后顺序不影响最后结果。 2、每一个棋子翻偶数次相当于没翻,翻基数次才有效果。所以16个位置最多有效频数为16步。 所以一共有2^16种状态。 编程实现上需要注意的是: 关键在于DFS如何递归,利用一个deep, 1、当要进行下一步翻转时,使
2016-09-24 22:24:53 675
转载 POJ题目分类推荐 (很好很有层次感)
OJ上的一些水题(可用来练手和增加自信) (poj3299,poj2159,poj2739,poj1083,poj2262,poj1503,poj3006,poj2255,poj3094) 初期: 一.基本算法: (1)枚举. (poj1753,poj2965) (2)贪心(poj1328,poj2109,poj2586) (3)递归和分治法.
2016-09-24 21:11:27 650
原创 【Leetcode】201. Bitwise AND of Numbers Range
Total Accepted: 42844Total Submissions: 132439Difficulty: Medium Given a range [m, n] where 0 For example, given the range [5, 7], you should return 4. public int rangeBitwiseAnd(int m, int
2016-09-19 23:01:44 440
原创 MatConvNet卷积神经网络(三)【图像滑动窗】
利用滑动窗搜索图像中的特定内容 Matconvnet官方给出的神经网络分类器imagenet-googleNet-dag.mat已经具备了较强的识别能力,能识别1000种标签。利用它再编写一个滑动窗函数,即可实现对大图像的内容搜索(如在一棵果树上寻找果子)。 分析: 由于图像中目标对象的大小往往不同,所以采用多个不同尺寸的滑动窗口对图像进行处理。处理时,窗口由左向右,由上
2016-09-06 21:57:09 5797 11
原创 MatConvNet卷积神经网络(二)
本篇内容: 1. 尝试DAG模块运行更复杂的图片识别算法。 2. 使用DAG模块,识别任意图片。 一、使用DAG模块 上一篇的例子是使用SimpleNN的典范。更复杂的模型则是使用DagNN。例如,要运行GoogLeNet使用: 首先试运行一下是否可以识别示例,将下面的代码复制后全部粘贴到MATLAB命令行中运行即可。(注意:运行目录应为MATCONVNET文件夹下)
2016-09-06 16:16:23 6346 4
原创 MatConvNet卷积神经网络(一)
概述: MatConvNet是一个用MATLAB实现卷积神经网络(CNN),用于计算机视觉应用的MATLAB工具箱。 MatConvNet 主页 开始: MatConvNet工具箱可以从官网手动下载解压安装,也可以直接从MATLAB命令行中进行下载安装。下面介绍通过MATLAB命令行安装。 首先确定电脑上已经安装了C++编译器(Visual Studio 20XX) 在MA
2016-09-05 23:49:52 5122
原创 【Leetcode】39. 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
2016-09-05 11:00:12 277
原创 【Leetcode】131. Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return [ ["aa","b"],
2016-09-04 17:15:11 315
原创 【Leetcode】17. 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
2016-09-04 13:14:55 280
原创 【Leetcode】51. 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
2016-09-04 11:11:04 286
原创 【Leetcode】116. Populating Next Right Pointers in Each Node
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its next right node.
2016-09-03 11:06:07 209
原创 【Leetcode】100. Same Tree
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. /** * Def
2016-09-03 10:43:00 285
原创 【Leetcode】378. Kth Smallest Element in a Sorted Matrix
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not
2016-09-03 10:26:49 270
空空如也
关于C++中嵌入python 结巴分词
2016-05-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人