自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 深度学习入门资料

神经网络与深度学习 @邱锡鹏老师神经网络浅讲:从神经元到深度学习从神经元到CNN、RNN、GAN…神经网络看本文绝对够了Recurrent Neural Networks Tutorial, Part 1 – Introduction to RNNs – WildML...

2019-03-10 15:38:08 172

原创 【数据挖掘】数据预处理思维导图

根据《数据挖掘:概念与技术》一书,第三章数据预处理的内容,整理思维导图如下:

2018-05-20 15:49:38 2126

原创 解决python多版本时pip问题

环境:Mac os 10.13.1问题描述采用pip安装mayavi时,遇到问题: 输入代码:$ pip3 install mayavi Complete output from command /Users/chujingtan/anaconda3/bin/python -u -c “import setuptools, tokenize;file=’/private/...

2018-05-08 21:48:23 1750

原创 264. Ugly Number II【 leetcode解题报告】

DescriptionWrite a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of t...

2018-05-07 14:27:39 187

原创 【算法导论】第12、13章 二叉搜索树和红黑树 学习笔记

二叉搜索树如果二叉树中的每个节点都满足: x.left≤x.keyx.right≥x.keyx.left≤x.keyx.right≥x.keyx.left\le x.key\\x.right\ge x.key 则称这棵树为二叉搜索树BST,又称二叉查找树。BST支持许多动态集合操作,包括:SEARCH、MINIMUN、MAXMUM、PREDECESSOR、SUCCESSOR、IN...

2018-05-01 20:25:51 163

原创 Single Number Ⅰ Ⅱ III【 leetcode解题报告】

136. Single Number ⅠDescriptionGiven a non-empty array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexi...

2018-05-01 14:48:43 437

原创 【算法导论】第十一章 散列表 学习笔记

散列表散列表(hash table)是实现字典操作的一种有效数据结构。尽管在最坏的情况下,在散列表中的查找一个元素的时间与链表中查找的时间相同,为O(n)O(n)O(n)。在一下合理的假设下,在散列表中查找一个元素的时间复杂度为O(1)O(1)O(1) 。在散列表中不是直接把关键字作为数组的下标,而是根据关键字计算出相应的下标。直接寻址表当关键字的全域UUU比较小时,直接寻址法是简...

2018-05-01 10:56:22 244

原创 209. Minimum Size Subarray Sum【leetcode解题报告】

DescriptionGiven an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn’t one, return 0 instead.For example, ...

2018-04-30 19:14:30 167

原创 81. Search in Rotated Sorted Array II【leetcode解题报告】

DescriptionSuppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]).You are given a target value to sear...

2018-04-30 17:07:23 163

原创 33. Search in Rotated Sorted Array【leetcode解题报告】

DescriptionSuppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).You are given a target value to sear...

2018-04-30 17:06:57 277

原创 367. Valid Perfect Square【leetcode解题报告】

题目Given a positive integer num, write a function which returns True if num is a perfect square else False.Note: Do not use any built-in library function such as sqrt.Example 1:Input: 16Retu...

2018-04-30 15:08:45 101

原创 69. Sqrt(x)【leetcode解题报告】

descriptionImplement int sqrt(int x).Compute and return the square root of x, where x is guaranteed to be a non-negative integer.Since the return type is an integer, the decimal digits are trunc...

2018-04-30 11:18:08 151

原创 378. Kth Smallest Element in a Sorted Matrix【leetcode解题报告】

题目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, n...

2018-04-28 22:32:14 144

原创 347. Top K Frequent Elements【leetcode解题报告】

题目Given a non-empty array of integers, return the k most frequent elements.For example, Given [1,1,1,2,2,3] and k = 2, return [1,2].Note: You may assume k is always valid, 1 ≤ k ≤ number of u...

2018-04-28 22:02:39 110

原创 215. Kth Largest Element in an Array 【leetcode解题报告】

题目: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For example, Given [3,2,1,5,6,4] and k = 2, ...

2018-04-28 20:22:39 158

原创 【算法导论】第六章 堆 学习笔记

堆二叉堆是一个数组,可以看做一个近似完全二叉树,对于一个长度为nnn的数组给定一个数组下标i, i=0,1,2,…,n−1i, i=0,1,2,…,n−1i,~i=0,1,2,…,n-1,则: parent(i)=i/2取下界left(i)=i∗2+1right(i)=i∗2+2parent(i)=i/2取下界left(i)=i∗2+1right(i)=i∗2+2par...

2018-04-27 10:38:04 178

原创 4. Median of Two Sorted Arrays【Hard】

leetcode Median of Two Sorted Arrays hard

2018-04-21 18:30:21 100

原创 OJ 1094 Sorting It All Out练习小结

注意三种情况的 优先级:不确定<顺序排列<矛盾在入度为0的点数大于1时,第一反应是序列暂时不能确定,但还可能存在之后输入的式子与之前输入矛盾的情况!这个时候不能直接返回stata=‘不确定’!一定要把所有式子遍历完,找到是否存在矛盾!最简单的思路就是把26个字符的大小情况用矩阵存储,-1表示大于,0表示未知,1表示小于。#include <iostream>#include <stack>

2016-09-23 12:44:44 351

原创 Coursera-week6 疑问

图中勾选的是正确答案,对于improve the test error 有疑问。提高测试误差?不应该是减小吗。。。。

2016-08-18 18:31:07 402

原创 coursera ML 错题集

【解析】It speeds up gradient descent by making it require fewer iterations to get to a good solution.错误答案:Normal equation 正规方程解无需使用特征缩放;特征缩放并不能令不可逆的X'X变成可逆的;特征缩放不能避免梯度下降法求出局部最优(实际上,这是梯度下降法的一个弊端,一旦求出局部最

2016-07-18 14:27:31 581

原创 Opencv之Mat::step小记

写代码的时候需要获取三维Mat的第三维大小,google搜索关键字:mat 第三维 出现文章http://blog.csdn.net/qianqing13579/article/details/45318279写的很详细,没注意博主的运行示范就直接用,以为step[2]是第三维大小...可运行结果出乎意料,仔细思考才发现:step[2]的最低维指的是元素的大小...如CV_64F=8,CV_3

2015-07-11 15:59:27 631

原创 Opencv之Mat矩阵赋值小记

1. 指向同一内存空间Mat A, C; A = Mat::ones(1,3, CV_32F); cout << "A:" << A << endl; Mat B(A); // 使用拷贝构造函数 cout << "B:" << B << endl; C = A

2015-07-11 15:18:58 10279 2

原创 Opencv代码小结之Mat三维创建和Mat逐点逐行赋值

在用opencv做三维重构时,新学习了Mat矩阵,对于Mat的创建赋值有了一定了解,代码简单小结如下:1、创建零/一矩阵 Mat mzeros = Mat::zeros(1, ix.rows, CV_32F); Mat mones = Mat::ones(1, ix.rows, CV_32F);2、创建空矩阵其中:Mat_ = CV_8U ,Mat_=CV_8S , Mat_ =

2015-07-10 17:23:42 12698

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除