- 博客(12)
- 收藏
- 关注
转载 AdaBoost
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,...
2016-12-01 02:35:00
142
转载 k近邻法及其实现
基础知识: 1、k近邻法的学习模型 k近邻法是基本且简单的分类与回归的方法,基本做法是:对给定的训练实例点和输入实例点,首先确定输入实例点的k个最近邻实例点,然后利用这k个训练实例点的类的多数来预测输入实例点的类,k近邻模型对应于基于训练数据集对特征空间的一种划分。在k近邻法中,当训练集、距离度量、k值及分类决策规则确定后,其结果唯一确定。 具体算法如下: 2...
2016-09-07 16:12:00
161
转载 PLA感知机及其实现
基础知识: 1、感知机学习的模型 感知机是根据输入实例的特征向量x对其进行二分分类的线性分类模型: f(x) = sign(w.x + b) 感知机模型对应于输入空间中的超平面w.x + b = 0,也即感知机学习的目的就是:找到一个能够完美划分不同类别的实例点的超平面; 2、感知机学习的策略 感知机的学习策略就是极小化损失函数: 损失函数对应于误分类...
2016-09-06 17:37:00
232
转载 VM ware 12下安装Ubuntu及其配置
Pintos 配置 一、 安装虚拟机 这里推荐VMware: 百度VMware,下载VMware,直接双击即可安装。(傻瓜式安装) 当然,还有别的虚拟机软件,也可以装双系统,但是别的虚拟机软件还未测试,双系统的联网会比较麻烦,这里用VMware来做示范。 VMware12下载地址: http://www.xiazaiba.com/html/27692.html#j_d...
2016-03-23 01:07:00
525
转载 Sicily 1198 Substring
1198. Substring Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description 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...
2016-03-23 00:32:00
125
转载 Sicily 1176 Two Ends
1176. Two Ends Constraints Time Limit: 1 secs, Memory Limit: 64 MB Description In the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is w...
2016-03-23 00:28:00
131
转载 Sicily 1051 Biker’s Trip Odomete
1051. Biker's Trip Odomete Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Most bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the b...
2016-03-23 00:26:00
207
转载 Sicily 1046 Plane Spotting
1046. Plane Spotting Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Craig is fond of planes. Making photographs of planes forms a major part of his daily life. Since h...
2016-03-23 00:25:00
142
转载 Sicily 1035 DNA matching
1035. DNA matching Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description DNA (Deoxyribonucleic acid) is founded in every living creature as the storage medium for genetic inf...
2016-03-23 00:23:00
120
转载 Sicily 1027 MJ,Nowhere to Hide
1027. MJ, Nowhere to Hide Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description On BBS, there is a familiar term called MJ (short for MaJia), which means another BBS ID of on...
2016-03-23 00:21:00
187
转载 Sicily 1021 Couple
1021. Couples Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description N couples are standing in a circle, numbered consecutively clockwise from 1 to 2N. Husband and wife do not...
2016-03-23 00:20:00
120
转载 Sicily 1020 Big Integer
1020. Big Integer Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Long long ago, there was a super computer that could deal with VeryLongIntegers(no VeryLongInteger wil...
2016-03-23 00:17:00
117
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人