摘要: from numpy import * ''' 生成数据 ''' def createData(): dataMat = matrix( [[0.],[1.],[2.],[3.],[4.],[5.],[6.],[7.],[8.],[9.]]) classLabels = [1.0,1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,-1... 阅读全文
posted @ 2016-12-01 02:35 日天大哥哥 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 基础知识: 1、k近邻法的学习模型 k近邻法是基本且简单的分类与回归的方法,基本做法是:对给定的训练实例点和输入实例点,首先确定输入实例点的k个最近邻实例点,然后利用这k个训练实例点的类的多数来预测输入实例点的类,k近邻模型对应于基于训练数据集对特征空间的一种划分。在k近邻法中,当训练集、距离度量、 阅读全文
posted @ 2016-09-07 16:12 日天大哥哥 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 基础知识: 1、感知机学习的模型 感知机是根据输入实例的特征向量x对其进行二分分类的线性分类模型: f(x) = sign(w.x + b) 感知机模型对应于输入空间中的超平面w.x + b = 0,也即感知机学习的目的就是:找到一个能够完美划分不同类别的实例点的超平面; 2、感知机学习的策略 感知 阅读全文
posted @ 2016-09-06 17:37 日天大哥哥 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: Pintos 配置 一、 安装虚拟机 这里推荐VMware: 百度VMware,下载VMware,直接双击即可安装。(傻瓜式安装) 当然,还有别的虚拟机软件,也可以装双系统,但是别的虚拟机软件还未测试,双系统的联网会比较麻烦,这里用VMware来做示范。 VMware12下载地址: http://w 阅读全文
posted @ 2016-03-23 01:07 日天大哥哥 阅读(2378) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1 secs, Memory Limit: 32 MB Dr lee cuts a string S into N pieces,s[1],…,s[N]. Now, Dr lee gives you these N sub-strings: s[1],…s[N]. There 阅读全文
posted @ 2016-03-23 00:32 日天大哥哥 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1 secs, Memory Limit: 64 MB In the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is wri 阅读全文
posted @ 2016-03-23 00:28 日天大哥哥 阅读(334) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1 secs, Memory Limit: 32 MB Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magn 阅读全文
posted @ 2016-03-23 00:26 日天大哥哥 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1 secs, Memory Limit: 32 MB Craig is fond of planes. Making photographs of planes forms a major part of his daily life. Since he tries to 阅读全文
posted @ 2016-03-23 00:25 日天大哥哥 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1 secs, Memory Limit: 32 MB DNA (Deoxyribonucleic acid) is founded in every living creature as the storage medium for genetic information. 阅读全文
posted @ 2016-03-23 00:23 日天大哥哥 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1 secs, Memory Limit: 32 MB On BBS, there is a familiar term called MJ (short for MaJia), which means another BBS ID of one person besides 阅读全文
posted @ 2016-03-23 00:21 日天大哥哥 阅读(344) 评论(0) 推荐(0) 编辑