在机器学习领域,混淆矩阵(confusion matrix),又称为可能性表格或是错误矩阵。它是一种特定的矩阵用来呈现算法性能的可视化效果,通常是监督学习(非监督学习,通常用匹配矩阵:matching matrix)。其每一列代表预测值,每一行代表的是实际的类别。这个名字来源于它可以非常容易的表明多个类别是否有混淆(也就是一个class被预测成另一个class)。...
分类:
其他好文 时间:
2015-04-07 23:29:49
阅读次数:
642
正则表达式匹配问题,首先要弄清楚问题里面的要求,总结下来正则式中会有以下四种类型的正则项:
a型,单个字母,正常匹配,1对1;
a*型,匹配0到n个重复字母(a*),视情况而定;
.型,匹配任意1个字母;
.*型,屌爆存在,想咋匹配自便!...
分类:
其他好文 时间:
2015-04-07 12:00:40
阅读次数:
158
在Terminal 中执行命令:lsusb Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 004: ID 5986:039...
分类:
移动开发 时间:
2015-04-07 10:12:54
阅读次数:
437
Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e...
分类:
其他好文 时间:
2015-04-07 07:09:42
阅读次数:
441
模式匹配(Pattern Matching)是F#中非常好用的一种语言特性。估计很多人都希望在C#中能用到这样的特性。 一句话解释一下模式匹配就是:创建一个函数可以接受和处理不同类型的表达式(包括不同参数及类型)。比如你写了一个名为format的函数,可以处理表达式“x?(1+2)”中的变量、常量、...
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cove...
分类:
其他好文 时间:
2015-04-02 15:13:28
阅读次数:
111
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input...
分类:
其他好文 时间:
2015-04-01 15:30:32
阅读次数:
153
Binary String Matching
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as...
分类:
其他好文 时间:
2015-03-31 09:12:58
阅读次数:
122
问题描述:给定字符串s与模式串p,其p中‘.‘可以匹配s中任意字符,‘*‘可以匹配0个或者任意多个之前字符,判断模式串p是否匹配全部字符串s(不是部分)。例子:isMatch("aa","a")→falseisMatch("aa","aa")→trueisMatch("aaa","aa")→falseisMatch("aa","a*")→trueisMatch("aa"..
分类:
其他好文 时间:
2015-03-31 01:03:53
阅读次数:
120
问题描述:给定字符串s与模式串p,其中p中的‘?‘可以匹配任意单个字符,‘*‘可以匹配任意字符串(包括空串),判断模式串是否匹配字符s全部(不是部分)。例子:isMatch("aa","a")→falseisMatch("aa","aa")→trueisMatch("aaa","aa")→falseisMatch("aa","*")→trueisMatch("aa"..
分类:
其他好文 时间:
2015-03-31 01:03:35
阅读次数:
115