
python
王子力
星星之火,可以燎原
展开
-
leetcode hIndexII
视频分析:http://v.youku.com/v_show/id_XMTMzMzI5OTQ1Ng==.html 题干: Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm?Hint:Expected runtime c原创 2015-09-12 13:23:58 · 488 阅读 · 0 评论 -
leetcode hIndex implemented with python
视频分析: http://v.youku.com/v_show/id_XMTMyOTc5NjMwNA==.html 题干: Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher’s h-in原创 2015-09-12 13:21:05 · 780 阅读 · 0 评论 -
leetcode add digits
视频分析: http://v.youku.com/v_show/id_XMTMzMjUwNjk3Mg==.html 题干: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the proc原创 2015-09-12 13:33:14 · 1084 阅读 · 0 评论 -
xgboost学习样例之multiclass_classification
上篇用到xgboost cli来做二分类,现在来做一个多分类。使用的数据集为 UCI皮肤病集总共有34个属性集合,6种分类label, 属性集除了family history是名词式的取值外,其他都是线性数值行取值7. Attribute Information: -- Complete attribute documentation: Clini原创 2017-09-19 18:06:34 · 3621 阅读 · 0 评论 -
xgboost学习样例解析之binary classification
玩kaggle时听说这个库很牛逼,准确率很高,于是打算学学看看。xgboost是extreme gradient boosting的缩写,gradient boosting是一类思想方法,这里不多赘述,可以参考这里:gradient boosting简介本文主要解析实例,理论以后慢慢补上。binary classification的例子官方原文在此: 点击打开链接原创 2017-09-19 16:46:38 · 1623 阅读 · 0 评论