个人博客:https://luxialan.com

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: Valid SudokuDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are ... 阅读全文
posted @ 2015-02-04 22:05 luxialan 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El... 阅读全文
posted @ 2015-02-04 10:51 luxialan 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the... 阅读全文
posted @ 2015-02-04 10:05 luxialan 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4... 阅读全文
posted @ 2015-02-04 09:54 luxialan 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Median of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run... 阅读全文
posted @ 2015-02-04 09:05 luxialan 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 4最近需要爬图,所以需要学Python和Scrapy。看了一些安装教程,索性自己整理添加一个完整包和安装教程。Python+Scrapy完整包下载:链接: http://pan.baidu.com/s/1qWNW5iO 密码: oklc1.安装Python2.7https://www.python.... 阅读全文
posted @ 2015-02-02 21:29 luxialan 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat... 阅读全文
posted @ 2015-01-29 10:47 luxialan 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Search in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).... 阅读全文
posted @ 2015-01-29 10:23 luxialan 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 专门看一下代价函数的求解参数求解:上式这个更新公式就叫做LMS(least mean square)更新规则,也叫Widrow-Hoff学习规则。这是一维的情况,我们可以拓展到多维的情况,由此得到两种不同的学习(迭代方法),即批处理梯度下降法和随机梯度下降法。1.批处理梯度下降法(每次迭代都遍历所有... 阅读全文
posted @ 2015-01-26 14:52 luxialan 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 线性回归模型是最简单的监督式学习模型:所谓的监督式学习模型就是需要通过已有的数据训练出一个最优的模型,能够表示这些已有的模型并能够预测新的数据。怎么判断模型是不是最优的呢?这就需要引入代价函数(Cost Function):怎么得到最优的模型呢?这就需要求解代价函数的最小值,也就需要引入梯度下降法。... 阅读全文
posted @ 2015-01-26 10:05 luxialan 阅读(387) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页