Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of a point is represen ...
分类:
其他好文 时间:
2017-05-28 00:29:39
阅读次数:
163
在谈线性回归模型的时候被问到,在线性回归中,有三个如果,是哪三个? 当时回答出来自变量x和因变量y之间是线性变化关系,也就是说,假设x进行线性变化的话,y也会有对应的线性变化。 提到数据样本的时候也答道了样本点之间要求是独立同分布的(依据MLE准则,假定对样本加上高斯白噪声e的情况下)。 可是第三个 ...
分类:
其他好文 时间:
2017-05-27 21:15:31
阅读次数:
268
K-均值聚类 K-均值算法试图将一系列样本分割成K个不同的类簇(其中K是模型的输入参数),其形式化的目标函数称为类簇内的方差和(within cluster sum of squared errors,WCSS)。K-均值聚类的目的是最小化所有类簇中的方差之和。标准的K-均值算法初始化K个类中心(为 ...
分类:
其他好文 时间:
2017-05-26 16:03:47
阅读次数:
266
ol定义和用法 <ol> 标签定义了一个有序列表. 列表排序以数字来显示。使用<li> 标签来定义列表选项。 基本语法如下: 运行结果: ol属性 reversed(h5新元素) 属性使用语法: 运行结果: type属性详解: start表示开始进行编号的数值,start=‘2’即从第二个标号开始进 ...
分类:
其他好文 时间:
2017-05-26 13:10:59
阅读次数:
289
解决一个机器学习问题的一般套路是先构建一个目标函数,然后解决一个优化问题。目标函数通常由损失函数和正则项组成。常见的损失函数log-loss,square-loss,cross-entropy-loss等,常见的正则化方法有L1正则、L2正则等,常见的优化方法有梯度下降、随机梯度下降等。SVM也可以 ...
分类:
编程语言 时间:
2017-05-25 23:31:27
阅读次数:
263
Triangle, square, pentagonal, hexagonal, heptagonal, and octagonal numbers are all figurate (polygonal) numbers and are generated by the following for ...
分类:
其他好文 时间:
2017-05-25 10:10:28
阅读次数:
169
1.利用边框制作正方形 如果将盒容器的width和height设置为0,并为每条边设置一个较粗的width值和彼此不同的颜色,最终会得到四个被拼接在一起三角形,它们分别指向不同的颜色。 html代码:<div id="square">11</div> css3代码: #square{ width:0 ...
分类:
Web程序 时间:
2017-05-24 00:53:24
阅读次数:
328
1.<a>标签,是内联标签 href:需要跳转的网址 2.id属性: 相当于一个身份证 例如: 设置id属性 3.列表标签 <ul>: 无序列表 [type属性:disc(实心圆点)(默认)、circle(空心圆圈)、square(实心方块)] <ol>: 有序列表 <li>:列表中的每一项. <d ...
分类:
Web程序 时间:
2017-05-22 16:36:30
阅读次数:
357
Robert is a famous engineer. One day he was given a task by his boss. The background of the task was the following: Given a map consisting of square b ...
分类:
其他好文 时间:
2017-05-22 15:12:21
阅读次数:
183
% Matlab script to illustrate Newton's method % to solve a nonlinear equation % this particular script finds the square root of a number M % (input by ...
分类:
其他好文 时间:
2017-05-21 21:41:29
阅读次数:
139