摘要: 集成学习属于机器学习的算法模型、模型融合属于数据挖掘多个模型得到结果的融合,但他们本质是一样的都是为了使用多个基本模型来提高泛化能力。放在一起统一的讲一讲。 为什么多模型能带来更好效果呢? 《机器学习》(周志华)一书从三个角度给出了学习器的结合带来的三个好处: 从统计上来说,由于假设空间很大,可能有 阅读全文
posted @ 2017-05-24 17:06 legooooo 阅读(1722) 评论(0) 推荐(0) 编辑
摘要: Description: Implement int sqrt(int x). Compute and return the square root of x. 解题思路: 直接利用牛顿迭代法进行解答,数值阈为0.0001,代码如下 class Solution {public: int mySqr 阅读全文
posted @ 2017-05-17 00:45 legooooo 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Description: Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If 阅读全文
posted @ 2017-05-15 16:18 legooooo 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Description: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the 阅读全文
posted @ 2017-05-04 13:23 legooooo 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Description: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. p 阅读全文
posted @ 2017-05-04 12:04 legooooo 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Description: We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. Now, given an int 阅读全文
posted @ 2017-04-09 22:20 legooooo 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x 阅读全文
posted @ 2017-04-09 21:58 legooooo 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Description: Determine whether an integer is a palindrome. Do this without extra space. Difficulty: Easy palindrome的意思是回数,即数字顺序颠倒后仍和原数字相等的数字。 引用百度百科的定 阅读全文
posted @ 2017-03-21 12:11 legooooo 阅读(318) 评论(0) 推荐(0) 编辑
摘要: Description: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do n 阅读全文
posted @ 2017-03-19 23:42 legooooo 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Description: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Note:The input is assu 阅读全文
posted @ 2017-03-19 16:00 legooooo 阅读(70) 评论(0) 推荐(0) 编辑