setTimeout(函数,毫秒)// 执行一次;clearTimeout();setTimeout( function(){ miaov.style.display = 'inline-block'; // 初始设定2秒后显示; setTimeout(function(){ // 定时器嵌套, ....
分类:
Web程序 时间:
2015-06-20 00:18:45
阅读次数:
234
感知机算法属于比较简单的分类器算法,但是跟逻辑回归和支持向量机一样属于构建分类超平面。
不同的是感知机采用分错的样本与分类超平面的距离作为损失函数,下面的算法基于随机梯度下降法,采用异步方式达到收敛状态
function [w,b]=perceptionLearn(x,y,learningRate,maxEpoch)
% Perception Learn Algorithm
% x...
分类:
编程语言 时间:
2015-06-19 23:06:59
阅读次数:
1995
1.对于javascript中的this关键字,表示的是当前代码所处的对象。var a={ get:function(){ this.val=12 }}console.log(a.val);a.get();console.log(a.val);a是一个对象,注意一点,get并不是一个对象(其实也不对...
分类:
编程语言 时间:
2015-06-19 23:06:11
阅读次数:
142
user:js========var user=document.getElementById('user');user.oncopy=user.onpaste=function () { return false;}
分类:
其他好文 时间:
2015-06-19 22:57:49
阅读次数:
159
html=====剩余字符150字js=======var txt=document.getElementById('txt');var show=document.getElementById('show');txt.onkeyup=function () { show.innerHTML=...
分类:
其他好文 时间:
2015-06-19 22:56:16
阅读次数:
134
user:js==========var user=document.getElementById('user');user.onkeyup=function () { this.value=this.value.replace(/[\u4E00-\u9FA5]/g,'');}
分类:
其他好文 时间:
2015-06-19 22:55:31
阅读次数:
155
1、html() 读取或修改节点的HTML内容 hello jQuery function f(){ alert($('#d1').html()); }2、text() 读取或修改节点的文本内容 hello jQuery function f(){...
分类:
Web程序 时间:
2015-06-19 21:32:11
阅读次数:
251
$(document).ready(function(){ alert("第一种方法。"); }); $(function(){ alert("第二种方法。"); }); jQuery...
分类:
Web程序 时间:
2015-06-19 20:16:21
阅读次数:
145
LibLinear(SVM包)的MATLAB安装1LIBSVM介绍LIBSVM是众所周知的支持向量机分类工具包(一些支持向量机(SVM)的开源代码库的链接及其简介),运用方便简单,其中的核函数(常用核函数-Kernel Function)可以自己定义也可以默认。但是对一些大数据来说,有没有非线性映射...
分类:
其他好文 时间:
2015-06-19 20:15:06
阅读次数:
3276
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2015-06-19 20:07:36
阅读次数:
150