上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页
摘要: //通过木桶结构压缩数据,getMidNum获取中间数 class Tong { constructor(){ this.data=[] this.length=0; } add(num){ if(!this.data[num]){ this.data[num]=1; }else{ this.dat 阅读全文
posted @ 2020-04-07 12:47 无工时代 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 根据两个用户的行为记录 [ [ 0, 1, 4, 9 ], [ 8, 0, 7, 2 ] ] ,找出中间记录[4,0.5,5.5,5.5],生成特征 [ [ 0, 1, 0, 1 ],[ 1, 0, 1, 0 ] ] 求出特征出现概率 [1/2,1/2,1/2,1/2] 输入新的行为,根据中间记录, 阅读全文
posted @ 2020-04-03 19:32 无工时代 阅读(451) 评论(0) 推荐(0) 编辑
摘要: class limitArray extends Array{ constructor(maxNum){ super() Object.defineProperty(this,"maxNum",{ enumerable:false,//是否可以被枚举 value:maxNum, writable:t 阅读全文
posted @ 2020-04-01 16:47 无工时代 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 'use strict';/*异步数据模块加载器功能1、加载器存在 主任务、副任务、子任务newRequire 表示加载主任务,主任务并发执行,newRequire(param1),执行主任务的时候,暂停副任务,主任务结束后,再执行副任务。onRequireFree 表示加载副任务,任务放队列,主任 阅读全文
posted @ 2020-03-25 16:37 无工时代 阅读(463) 评论(0) 推荐(0) 编辑
摘要: class LCache{ constructor(load,exec){ this.load=load;//加载函数 this.exec=exec;//执行函数 this.maxLen=100;//最大缓存数 this.nearTimeMap={};//最近访问时间 this.resMap={}; 阅读全文
posted @ 2020-03-20 18:37 无工时代 阅读(288) 评论(0) 推荐(0) 编辑
摘要: //bitmap 判断是否存在 Buffer.prototype.hasBit=function(num){ const n=num>>3; const k=num%8; return (this[n]&1<<k)!==0 } Buffer.prototype.setBit=function(num 阅读全文
posted @ 2020-03-18 14:06 无工时代 阅读(187) 评论(0) 推荐(0) 编辑
摘要: demo地址 http://106.13.201.82/demo/page_change.html page_change.vue <template> <div class="flex" :class="direction" :style="{width:width,height:height}" 阅读全文
posted @ 2020-03-14 14:19 无工时代 阅读(3166) 评论(0) 推荐(0) 编辑
摘要: function getText(time,callback) { setTimeout(function () { callback(time) },time) } var callbackMap={};//记录加载完成的回调 var resMap={};//记录url var loadbackM 阅读全文
posted @ 2020-03-11 00:43 无工时代 阅读(177) 评论(0) 推荐(0) 编辑
摘要: //通过贝叶斯概率机器学习 const execMathExpress=require('exec-mathexpress'); //一个神经元,同过学习特征,判断是否发出信号 class Yuan { constructor(props) { this.props=props||{}; } //学 阅读全文
posted @ 2020-02-29 23:59 无工时代 阅读(340) 评论(0) 推荐(0) 编辑
摘要: //通过贝叶斯概率机器学习 const execMathExpress=require('exec-mathexpress'); //一个神经元,同过学习特征,判断是否发出信号 class Yuan { constructor(props) { this.props=props||{}; } //学 阅读全文
posted @ 2020-02-26 16:22 无工时代 阅读(256) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页