自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

李宁宁

要一直努力那~

  • 博客(20)
  • 资源 (4)
  • 收藏
  • 关注

原创 【机器学习读书笔记】Logistic回归

【机器学习读书笔记】Logistic回归四、Logistic回归 Logistic回归属于广义线性回归模型,通过历史数据的表现对未来结果发生的概率进行预测,它属于分类和预测算法中的一种。他是用来解决二值分类(binary classification),AndrewNG忠告:不要用线性回归去解决分类问题。 逻辑回归的回归方程和线性回归相比,在其基础上增加了一个逻辑函数(logistic

2017-07-13 16:11:26 635 1

原创 【机器学习读书笔记】朴素贝叶斯分类

【机器学习读书笔记】朴素贝叶斯分类三、朴素贝叶斯分类 朴素贝叶斯是基于概率论的分类方法,不像之前给出的K-近邻和决策树会硬性的将输入分到一个类别中。朴素贝叶斯分类算法只给出该数据属于某一类别的可能性或者说概率。最终的类别标签会以较大概率的标签为准。 朴素贝叶斯在贝叶斯的基础上给出了条件独立性假设,我们也知道这个假设非常简单,这也是它称为朴素的原因。算法思路贝叶斯定理 我们先看看wi

2017-07-13 16:09:26 469 2

原创 【机器学习读书笔记】决策树

【机器学习读书笔记】决策树二、决策树 决策树也属于监督学习里面的分类算法。书中介绍的算法是ID3,比较流行的还有C4.5、CART。决策树也是最长使用的数据挖掘的算法。 决策树分类器就像带有终止块的流程图,终止块表示分类结果。开始处理数据集时,首先需要测量数据集中的不一致性,也就是熵,然后寻找最优方案划分数据集,然后寻找最优方案划分数据集,直到数据集中的所有数据处于同一分类。算法思路

2017-07-13 16:08:33 453

原创 【机器学习读书笔记】 k近邻算法(KNN)

【机器学习读书笔记】 k近邻算法(KNN)一、K-近邻算法 kNN属于监督学习中的分类算法。与后面将要学习的决策树都属于结果确定的分类算法,数据实例最终会被明确划分到某个分类中。还有一种分类算法将不能完全确定数据实例应该划分到某个类,或者只能给出数据实例属于某个分类的概率。算法思路监督学习就一定存在训练样本集。训练样本中每个样本都有已知的分类标签。也就是说我们知道样本集中的每一个样本与所属分

2017-07-13 16:08:04 486

原创 LeetCode 111. Minimum Depth of Binary Tree

111. Minimum Depth of Binary Tree一、问题描述 Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf

2017-07-11 17:44:56 474

原创 LeetCode 108. Convert Sorted Array to Binary Search Tree

108. Convert Sorted Array to Binary Search Tree一、问题描述 Given an array where elements are sorted in ascending order, convert it to a height balanced BST.二、输入输出三、解题思路Binary Search Tree 二叉搜索树定义为:是指一颗空树

2017-07-11 17:44:33 532

原创 LeetCode 107. Binary Tree Level Order Traversal II

107. Binary Tree Level Order Traversal II一、问题描述 Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root).二、输入输

2017-07-10 13:57:54 581

原创 LeetCode 104. Maximum Depth of Binary Tree

104. Maximum Depth of Binary Tree一、问题描述 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf

2017-07-10 13:57:38 550

原创 LeetCode 10. Same Tree

10. 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 sa

2017-07-10 13:17:35 442

原创 LeetCode 101. Symmetric Tree

101. Symmetric Tree一、问题描述 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).二、输入输出For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \

2017-07-10 13:17:19 511

原创 LeetCode 69. Sqrt(x)

69. Sqrt(x)一、问题描述 Implement int sqrt(int x). Compute and return the square root of x.二、输入输出三、解题思路二分法直接写二分法超时了,不知道为什么 int Sqrt(int x, int low, int high) { int mid; while

2017-07-06 20:35:28 666

原创 LeetCode 67. Add Binary

67. Add Binary一、问题描述 Given two binary strings, return their sum (also a binary string).二、输入输出For example, a = "11" b = "1" Return "100".三、解题思路从后向前遍历这道题看着不难,有几个点需要注意。首先最好不要转换成int或者二进制的数来进行计算,再转换回

2017-07-06 19:54:02 697

原创 LeetCode 58. Length of Last Word

58. Length of Last Word一、问题描述 Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exis

2017-07-05 19:13:47 678

原创 LeetCode 28. Implement strStr()

28. Implement strStr()一、问题描述 Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.二、输入输出三、解题思路转换成:判断两个字符串prefix是否相同单独处理

2017-07-05 17:37:52 633

原创 LeetCode 14. Longest Common Prefix

14. Longest Common Prefix一、问题描述 Write a function to find the longest common prefix string amongst an array of strings.二、输入输出三、解题思路二路归并解题思路:如果给你两个字符串,让你找出最大的common prefix 你一定有办法(对吧?)简单说就是取第一个字符串的子串,

2017-07-05 16:03:33 526

原创 LeetCode 20. Valid Parentheses

20. Valid Parentheses一、问题描述 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "

2017-07-05 16:03:14 521

原创 LeetCode 9. Palindrome Number

9. Palindrome Number一、问题描述 Determine whether an integer is a palindrome. Do this without extra space. **Some hints:**Could negative integers be palindromes? (ie, -1)If you are thinking of conver

2017-07-04 16:34:51 384

原创 LeetCode 7. Reverse Integer

7. Reverse Integer一、问题描述 Reverse digits of an integer. **Have you thought about this?**Here are some good questions to ask before coding. Bonus points for you if you have already thought through

2017-07-04 15:52:10 416

原创 LeetCode 4. Median of Two Arrays

4. Median of Two Arrays一、问题描述 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log

2017-07-04 00:42:59 599 1

原创 LeetCode 3. Longest Substring Without Repeating Characters

3. Longest Substring Without Repeating Characters一、问题描述 Given a string, find the length of the longest substring without repeating characters.二、输入输出Examples:Given "abcabcbb", the answer is "abc", wh

2017-07-03 17:30:22 449

Linux内核完全剖析基于0.12内核.pdf (附linux kernel 0.12源码和测试软件,亲测可用)

1、Linux内核完全剖析基于0.12内核.pdf 2、linux kernel 0.12源码 3、测试软件

2017-06-02

cubieboard2 A20 SPI驱动文件

cubieboard2 A20 默认不支持SPI驱动,需要自己配置;这里提供他的核心态驱动文件;

2016-06-13

json所需的全部jar包(共7个-亲测可用)

json所需的全部jar包,一共7个,亲测直接放到web下面的lib里面即可使用。资源内jar包分别是: json-lib-2.3-jdk15.jar commons-beanutils-1.8.0.jar commons-collections-3.1.jar commons-lang-2.4.jar commons-logging-1.1.3.jar ezmorph-1.0.6.jar struts2-json-plugin-2.3.15.3.jar

2015-10-08

jquery2.1.4 最新版

jquery-2.1.4最新版,亲测可用,欢迎大家下载!

2015-10-08

空空如也

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

TA关注的人

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