1、介绍 ?决策树(decision tree)是一种有监督的机器学习算法,是一个分类算法。在给定训练集的条件下,生成一个自顶而下的决策树,树的根为起点,树的叶子为样本的分类,从根到叶子的路径就是一个样本进行分类的过程。 ?下图为一个决策树的例子,见http://zh.wikipedia.org/w...
分类:
其他好文 时间:
2014-06-25 13:13:16
阅读次数:
172
转自:http://www.cnblogs.com/way_testlife/archive/2011/04/17/2019013.htmlPIL 下载:http://www.pythonware.com/products/pil/index.htm安装 PIL $ tar xvfz Imaging...
分类:
编程语言 时间:
2014-06-25 12:33:09
阅读次数:
305
using System;namespace ConsoleApplication10{ class Program { static void Main(string[] args) { Console.WriteLine(index(...
分类:
其他好文 时间:
2014-06-25 12:31:18
阅读次数:
180
RPM是RedHat Package Manager(RedHat软件包管理工具)类似Windows里面的“添加/删除程序” rpm 执行安装包 二进制包(Binary)以及源代码包(Source)两种。二进制包可以直接安装在计算机中,而源代码包将会由RPM自动编译、安装。源代码包经常以src.rp...
分类:
系统相关 时间:
2014-06-25 12:05:45
阅读次数:
397
trie -- suffix tree -- suffix automa 有这么一些应用场景:
即时响应用户输入的AJAX搜索框时, 显示候选列表。
搜索引擎的关键字个数统计。
后缀树(Suffix Tree): 从根到叶子表示一个后缀。
仅仅从这一个简单的描述,我们可以概念上解决下面的几个问题:
P:查找字符串o是否在字符串S中
A:若o在S中,则o必然是S的某个后缀...
分类:
其他好文 时间:
2014-06-25 08:47:36
阅读次数:
165
【题目】
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the total sum of all root-to-leaf numbers.
For example,
1
...
分类:
其他好文 时间:
2014-06-25 07:32:27
阅读次数:
209
创意来自:http://www.html5tricks.com/demo/html5-3d-cube/index.html , 同学给我发的例子...
分类:
Web程序 时间:
2014-06-25 06:56:23
阅读次数:
235
今天说说刚刚学到的两个Cookie的最经典应用:自动登录和购物车设置
一:自动登录
需要两个页面:login.jsp与index.jsp,login.jsp用来输出登录信息,index.jsp处理登录信息:如果有Cookie,则自动登录,否则创建输入信息的对象的Cookie,下次登录可以直接登录,但是我们在这里给Cookie设置一个最大保存时间30s,即登录30s后会自动退回到登陆页面,具体代...
分类:
其他好文 时间:
2014-06-25 06:54:22
阅读次数:
295
获取table中选中一行的一个单元格的值varid=$(‘input:checked‘).val();
alert($(‘input:checked‘).parent().parent().index());
varrow=$(‘input:checked‘).parent().parent().index();
varstr=document.getElementById("table1").rows[row+1].cells[5].innerText;
alert(str);..
分类:
Web程序 时间:
2014-06-25 06:21:50
阅读次数:
281
今天遇到了一个关于div层覆盖的问题,我在同一个页面引入了jqueryui中的datepiker和百度编辑器,结果datepiker日期所在的div层被覆盖了。如图所示:然后在firebug里查看,发现datepiker所在div层默认的z-index为1,而ueditor的却是999,所以被覆盖住了,所以只需要把datepiker..
分类:
Web程序 时间:
2014-06-25 06:15:21
阅读次数:
265