现在位置: 首页 > vermilion发表的所有文章
  • 09月
  • 29日
综合 ⁄ 共 5233字 评论关闭
Cross Validation is a basic method to estimate predictive performance of a supervised learning model on unknown data, i.e. to assess the power of generalization of a model. Why we need Cross Validation The primary goal of Cross Validation is to void over-fitting. Empirical Risk will decrease with the rise of the complexity of learning model, however, the generalization power will decrease too, that is, the true performance in unknown data may get worse. So empirical Risk is not a effecti......
阅读全文
  • 06月
  • 21日
综合 ⁄ 共 224字 评论关闭
文章目录 我是一尾溺水的鱼,因为丧失了思想,所以能够自由自在的流浪! 一:诗特林-sterning                     地址   http://www.blogjava.net/sterning/archive/2009/11/06/301468.html 二:溺水的鱼 - Later equals never. 我是一尾溺水的鱼,因为丧失了思想,所以能够自由自在的流浪! http://blog.csdn.net/oracle_microsoft/article/category/296025 学习以上2大神的博客,你也可以。
阅读全文
  • 02月
  • 28日
算法 ⁄ 共 2791字 评论关闭
Dining Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 7589   Accepted: 3472 Description Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. Farmer John has cooked fabulous meals for his cows, but he forgot to check his menu against their preferences. Although he might not be able to stuff everybody, he wants to give a complete meal of both food and drink to as many cows as possible. Farmer John has......
阅读全文
  • 12月
  • 23日
综合 ⁄ 共 2095字 评论关闭
A very big corporation is developing its corporative network. In the beginning each of the Nenterprises of the corporation, numerated from 1 to N, organized its own computing andtelecommunication center. Soon, for amelioration of the services, the corporation started to collectsome enterprises in clusters, each of them served by a single computing and telecommunicationcenter as follow. The corporation chose one of the existing centers I (serving the cluster A) andone of the enterprises J......
阅读全文
  • 12月
  • 16日
综合 ⁄ 共 5010字 评论关闭
一、 贝叶斯反垃圾邮件技术介绍 贝叶斯是基于概率的一种算法,是Thomas Bayes:一位伟大的数学大师所创建的,目前此种算法用于过滤垃圾邮件得到了广泛地好评。贝叶斯过滤器是基于“自我学习”的智能技术,能够使自己适应垃圾邮件制造者的新把戏,同时为合法电子邮件提供保护。在智能邮件过滤技术中,贝叶斯(Bayesian)过滤技术取得了较大的成功,被越来越多地应用在反垃圾邮件的产品中。 二、 贝叶斯过滤算法的基本步骤 1. 收集大量的垃圾邮件和非垃圾邮件,建立垃圾邮件集和非垃圾邮件集。 2. 提取邮件主题和邮件体......
阅读全文
  • 06月
  • 10日
综合 ⁄ 共 1752字 评论关闭
转自   http://blog.csdn.net/naruto1021/article/details/7998298      项目页面需要一个简单的文本编辑器,网上的那些富文本编辑器功能都很强大,很多东西用不到,所以自己用js写了一个简单的文本编辑器。 代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"> <title>简单文本编辑器</title> </head> <body><divsty......
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 1507字 评论关闭
1.效率肯定是delegate比nsnotification高。 2. delegate方法比notification更加直接,最典型的特征是,delegate方法往往需要关注返回值,也就是delegate方法的结果。比如-windowShouldClose:,需要关心返回的是yes还是no。所以delegate方法往往包含should这个很传神的词。也就是好比你做我的delegate,我会问你我想关闭窗口你愿意吗?你需要给我一个答案,我根据你的答案来决定如何做下一步。相反的,notification最大的特色就是不关心接受者的态度,我只管把通告放出来,你接受不接受就是你的事情,同时我也不关心结果。所以not......
阅读全文
  • 05月
  • 10日
综合 ⁄ 共 446字 评论关闭
01B0815自考科目 课程代码[学分] 课程名称 03708[02] 中国近现代史纲要 03709[04] 马克主义基本原理概论 03684[10] 综合英语(四) 01042[05] 应用数学 05707[04] 游戏创意与设计概论 05708[03] Visual C++ 05709[03] Visual C++(实践) 05713[03] DirectX 05714[02] DirectX(实践) 05715[03] 高级C++软件编程 05716[03] 高级C++软件编程(实践) 05717[04] 游戏架构导论 05720[03] 游戏文化与心理学 07129[03] Java语言程序设计 07185[02] Java语言程序设计(实践) 40035[02] J2ME......
阅读全文
  • 05月
  • 02日
综合 ⁄ 共 599字 评论关闭
80.阿里巴巴一道笔试题  问题描述: 12  个高矮不同的人,排成两排,每排必须是从矮到高排列,而且第二排比对应的第一排的人 高,问排列方式有多少种? 这个笔试题,很 YD,因为把某个递归关系隐藏得很深。 /* 80.阿里巴巴一道笔试题 问题描述: 12 个高矮不同的人,排成两排,每排必须是从矮到高排列,而且第二排比对应的第一排的人 高,问排列方式有多少种? 刚开始没看出来 后来发现了 卡特兰数 引用别人的问题分析: 我们先把这12个人从低到高排列,然后,选择6个人排在第一排,那么剩下的6个肯定是在第二排. 用0表示对应的人在第一排,用1......
阅读全文
  • 04月
  • 25日
综合 ⁄ 共 280字 评论关闭
乱搞,非正解。 #include<cstdio> int n,a[100001],q,t,A,b,x; int main() { scanf("%d",&n); for(int i=1;i<=n;i++) scanf("%d",&a[i]); scanf("%d",&q); for(int i=1;i<=q;i++){ scanf("%d",&t); if(t==1){ scanf("%d %d %d",&A,&b,&x); for(int j=A;j<=b;j++)a[j]+=x; } if(t==2){ scanf("%d",&x); printf("%d\n",a[x]); } } return 0; }
阅读全文
  • 04月
  • 18日
综合 ⁄ 共 251字 评论关闭
RT. 原则如下: 1、表名全部小写,mysql在Linux环境下区分大小写; 2、实体间关系不要直接体现在数据库里,在数据库中不建立表的任何外键,而是在程序中维护表间关系。 3、尤其有紧密关系的表,其前缀保持一致,如:tb_employee,tb_company,tb_dependment。 4、一个数据库实例里,表的主键ID 统一,如都为id。这个原则体现在程序里,可设计为:一个只有id属性的父类entity类,其他的有具体意义的entity类都继承它,这样保证所有的entity类具有统一名称的主键id。
阅读全文
  • 04月
  • 15日
综合 ⁄ 共 2323字 评论关闭
创建UITableViewController子类的实例后,IDE生成的代码中有如下段落: [cpp] view plaincopy - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {     static NSString *CellIdentifier = [NSString stringWithFormat:@"Cell"];     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];     if (cell == nil) {       cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdenti......
阅读全文