上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页
摘要: 距离计算方法总结 在做分类时常常需要估算不同样本之间的相似性度量(Similarity Measurement),这时通常采用的方法就是计算样本间的“距离”(Distance)。采用什么样的方法计算距离是很讲究,甚至关系到分类的正确与否。 本文的目的就是对常用的相似性度量作一个总结。 本文目录: 1 阅读全文
posted @ 2016-10-26 21:38 Black_Knight 阅读(39475) 评论(0) 推荐(4) 编辑
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-neg 阅读全文
posted @ 2016-10-26 11:18 Black_Knight 阅读(1410) 评论(0) 推荐(0) 编辑
摘要: 1. 问题由来 面试的时候被问到了各种编码方式的区别,结果一脸懵逼,这个地方集中学习一下。 2. 几种字符编码的方式 1. ASCII码 我们知道,在计算机内部,所有的信息最终都表示为一个二进制的字符串。每一个二进制位(bit)有0和1两种状态,因此八个二进制位就可以组合出256种状态,这被称为一个 阅读全文
posted @ 2016-10-25 11:09 Black_Knight 阅读(32557) 评论(0) 推荐(1) 编辑
摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 【题目分析】 这个题目很简短,要做的事情也比较简单,即:把两个用字符串表示的二进制数 阅读全文
posted @ 2016-10-25 10:33 Black_Knight 阅读(181) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single 阅读全文
posted @ 2016-10-21 21:05 Black_Knight 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 【题目分析】 题意很简答,即把一个罗马数字转换为一个整数。 罗马数字的取值范围是1到 阅读全文
posted @ 2016-10-19 14:26 Black_Knight 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? 阅读全文
posted @ 2016-10-18 10:32 Black_Knight 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: The solution set must not contain duplicate sub 阅读全文
posted @ 2016-10-12 21:39 Black_Knight 阅读(164) 评论(0) 推荐(0) 编辑
摘要: python中有一个读写csv文件的包,直接import csv即可。利用这个python包可以很方便对csv文件进行操作,一些简单的用法如下。 1. 读文件 例如有如下的文件 输出结果如下 ['0.093700','0.139771','0.062774','0.007698'] ['-0.022 阅读全文
posted @ 2016-10-08 10:00 Black_Knight 阅读(126102) 评论(1) 推荐(1) 编辑
摘要: 1. 为什么要使用mulan 我用mulan来做多标签数据的分类,但是mulan的输入数据由两个文件控制,一个是data.arff文件,这个文件列出的所有的属性以及这些属性值的类型和他们对应的值。label.xml文件列出了所有属性中属于标签的那部分属性,根据这个文件可以确定哪些属性是特征,哪些属性 阅读全文
posted @ 2016-10-08 09:41 Black_Knight 阅读(668) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页