一、朴素贝叶斯(Naïve Bayes)分类器 1.1 公式 朴素贝叶斯是一个概率分类器 文档 d 属于类别 c 的概率计算如下(多项式模型): nd是文档的长度(词条的个数) P(tk |c) 是词项tk 出现在类别c中文档的概率,即类别c文档的一元语言模型 P(tk |c) 度量的是当c是正确类...
分类:
编程语言 时间:
2015-03-07 18:23:06
阅读次数:
657
题意大白书二分答案,然后对于每个可能的答案,跑一遍2-SAT就好了。#include #include #include #include #include using namespace std;const int maxn=2000+10;struct TwoSAT{ int n; ve...
分类:
其他好文 时间:
2015-03-06 21:55:34
阅读次数:
170
1.页面一main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="ve...
分类:
移动开发 时间:
2015-03-04 22:49:46
阅读次数:
204
Building Your First AppAfter you've installed the Android SDK, start with this class to learn the basics about Android app development.Creating an And...
分类:
移动开发 时间:
2015-03-02 13:00:07
阅读次数:
189
Today is a good day to start parallelizing your code. I’ve been using the parallel package since its integration with R (v. 2.14.0) and its much easie...
分类:
其他好文 时间:
2015-02-27 10:01:15
阅读次数:
276
X100 + Plus key programmer supports multi-function: vehicle identification, read / erase error codes, key programming, ECU programming for parts of ve...
分类:
其他好文 时间:
2015-02-26 16:33:11
阅读次数:
228
Given a list of non negative integers, arrange them such that they form the largest number.
For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330.
Note: The result may be ve...
分类:
其他好文 时间:
2015-02-17 14:08:08
阅读次数:
165
Problem Description
The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on it, and all packed into a 4 by 4 frame with one tile m...
分类:
编程语言 时间:
2015-02-15 09:29:04
阅读次数:
1023
IDMPhotoBrowserIDMPhotoBrowser is a new implementation based onMWPhotoBrowser.IDMPhotoBrowser实现了图片浏览器的功能,基于MWPhotoBrowser.We've added both user experi...
分类:
其他好文 时间:
2015-02-14 07:36:52
阅读次数:
304
1. 引子假定电视机/TV有方法open()、close()和changeChannel()用于打开、关闭和切换电视频道,而遥控器/Controller对TV的操作,通常使用消息传递/方法调用表达式。package method.command;/** * @author yqj2065 * @ve...
分类:
其他好文 时间:
2015-02-12 19:58:40
阅读次数:
188