一般在有监督训练中,我们很自然地会用如下模式去预测测试集的分类:(以svm为例) svm.fit(x_train, y_train) y_pred=svm.predict(x_test) 那么无监督训练中是否也可以在一个数据集上训练,然后用训练好的模型直接调用predict()函数在另一个数据集上进 ...
分类:
其他好文 时间:
2020-09-17 17:12:13
阅读次数:
39
if (Identification.Length == 18)//处理18位的身份证号码从号码中得到生日和性别代码 { string age = Identification.Substring(6, 4) + "-" + Identification.Substring(10, 2) + "-" ...
tooltip: { trigger: "axis", transitionDuration: 0, }, echarts属性中添加 ...
分类:
其他好文 时间:
2020-09-17 17:11:40
阅读次数:
30
A的行向量与B的行向量等价 行向量是方程组的一个等式,列向量是变量,行向量等价即相互线性表出,则两组方程通解 也可以用秩来表示 ...
分类:
其他好文 时间:
2020-09-17 17:11:21
阅读次数:
153
HDU6314 Matrix Problem Description Samwell Tarly is learning to draw a magical matrix to protect himself from the White Walkers. the magical matrix is ...
分类:
其他好文 时间:
2020-09-17 17:11:07
阅读次数:
24
数组 array_unshift 数组头部追加,用法如下: $arr = ['demo','dmoa']; array_unshift($arr,'demob'); //在$arr的前面追加demob 这个是追加单个,也可以追加多个 array_unshift($arr,'democ','demod ...
分类:
Web程序 时间:
2020-09-17 17:10:50
阅读次数:
37
在 flex 和 grid 布局出现的今天,我依然听到有人面试了,圣杯布局、双飞翼布局。 虽然网上一搜一大把,但不自己写一篇,总觉得是自我学习过程中的一种遗憾,一起致敬经典 圣杯布局和双飞翼布局 在如今的网页中我们经常可以看到左、中、右三列,其中左右两列宽度固定,中间宽度自适应的布局方式,并且让中间 ...
分类:
其他好文 时间:
2020-09-17 17:10:26
阅读次数:
26
1、多线程的创建方式 继承Thread类 实现runnable 接口,无返回值,无异常 实现callable接口,有返回值,有异常 线程池(此种方式,网上很多不算创建方式,但是个人觉得可以创建线程,所以我归进去) 1、1 继承Thread类 public static class MyThread ...
分类:
编程语言 时间:
2020-09-17 17:10:06
阅读次数:
35
int romanToInt(char * s){ int* hash = (int*)calloc(26,sizeof(int)); hash['I'-65] = 1; hash['V'-65] = 5; hash['X'-65] = 10; hash['L'-65] = 50; hash['C' ...
分类:
其他好文 时间:
2020-09-17 17:09:44
阅读次数:
20
一、切片 (1)正常切片 L[0:3] L[0:3]表示,从索引0开始取,直到索引3为止,但不包括索引3。即索引0,1,2,正好是3个元素。 如果第一个索引是0,还可以省略。 L[:3] (2)倒数切片 L[-2:] (3)每几个选一个 L[:10:2] #前10个数,每两个取一个 (4)tuple ...
分类:
编程语言 时间:
2020-09-17 17:09:30
阅读次数:
24
最近需要WebSocket,就去网上找了Demo 先附地址:https://www.cnblogs.com/sheseido/p/7047948.html 先是Html端的代码,也算客户端吧:新建一个WebApplication空项目就行了,然后添加要给Html页,设未起始页 <!DOCTYPE H ...
A - Permutation Forgery 倒序输出即可。 #include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> #include<climits> #include< ...
分类:
其他好文 时间:
2020-09-17 17:08:44
阅读次数:
31
程序和进程的关系 程序:保存在硬盘、光盘等介质中的可执行代码和数据 静态保存的代码 进程:在CPU及内存中运行的程序代码 动态执行的代码 PS:父子进程:每个程序可以创建一个或多个进程 查看进程 ps a 显示当前终端下的所有进程信息 u 显示以用户为主的格式来显示进程信息 x 显示当前用户在所有终 ...
分类:
系统相关 时间:
2020-09-17 17:08:30
阅读次数:
33
Admin django内置了一个强大的组件叫Admin,提供给网站管理员快速开发运营后台的管理站点。 站点文档: https://docs.djangoproject.com/zh-hans/2.2/ref/contrib/admin/ 辅助文档:https://www.runoob.com/dj ...
分类:
其他好文 时间:
2020-09-17 17:08:11
阅读次数:
23
为什么协程比线程的执行效率更高? https://blog.csdn.net/ahjxhy2010/article/details/105482740 https://www.cnblogs.com/zhang-can/p/7215506.html ...
分类:
编程语言 时间:
2020-09-17 17:08:00
阅读次数:
18
''' 斗地主:v1.0 ''' import random def creat_poker(): # 扑克9种:2-10 poker_num = [str(i) for i in range(2, 11)] # 剩下的4种 poker_str = ['A', 'J', 'Q', 'K'] # 2个 ...
分类:
编程语言 时间:
2020-09-17 17:07:42
阅读次数:
27
I will use the field “ClosingDate” to demonstrate my favorite approach to trouble shoot field binding issue. Generally speaking, the issue could be su ...
分类:
其他好文 时间:
2020-09-17 17:07:23
阅读次数:
32