Dropout 解决 overfitting overfitting也被称为过度学习,过度拟合。他是机器学习中常见的问题。 图中的黑色曲线是正常模型,绿色曲线就是overfitting模型。尽管绿色曲线很精确的区分了所有的训练数据,但是并没有描述数据的整体特征,对新测试的数据适应性比较差。 举个Re ...
分类:
其他好文 时间:
2019-08-05 18:37:48
阅读次数:
87
检查数组重复(一)let inputValue = this.positionGroupInput[groupId].inputValue;if (inputValue) {for (let positionGroup of this.lists) {if (positionGroup.id gro ...
分类:
编程语言 时间:
2019-08-05 17:11:10
阅读次数:
538
一、Tree Shaking的概念 1. 如果设置了此配置,可以不用在js文件中单独引入polyfill 2. Tree Shaking ( 只支持ES module这种静态导入的方式导入 ) 对一些用到的包才打包,没有用到的代码不打包 概念:最理想的方式是我引用什么,打包什么,tree shaki ...
分类:
Web程序 时间:
2019-08-04 20:02:13
阅读次数:
205
#include #include #include using namespace std; long long a[101000],b[101000]; int n; inline void Merge(int l,int mid,int r) { for(int i=l;imid) { a[i... ...
分类:
编程语言 时间:
2019-08-04 10:30:05
阅读次数:
98
前言: 1.对于mysql,不推荐使用子查询和join是因为本身join的效率就是硬伤,一旦数据量很大效率就很难保证,强烈推荐分别根据索引单表取数据,然后在程序里面做join,merge数据。 2.子查询就更别用了,效率太差,执行子查询时,MYSQL需要创建临时表,查询完毕后再删除这些临时表,所以, ...
分类:
数据库 时间:
2019-08-03 12:59:14
阅读次数:
103
以repo1合并到repo2为例,总体来说有4步: 在repo2 clone到本地的代码目录中: 1. git remote add repo1 <repo1地址> 2. git fetch repo1 3. git branch repo1 repo1/master (仍在master branc ...
分类:
其他好文 时间:
2019-08-03 11:02:14
阅读次数:
115
第一次尝试用C++迭代器编写算法,使用的是纯迭代器 ...
分类:
编程语言 时间:
2019-08-03 00:37:52
阅读次数:
94
题目链接 : https://leetcode cn.com/problems/intersection of two linked lists/ 题目描述: 编写一个程序,找到两个单链表相交的起始节点。 如下面的两个链表 : 在节点 c1 开始相交。 示例: 示例 1: 思路: 思路一:记录一个链 ...
分类:
其他好文 时间:
2019-08-02 20:14:23
阅读次数:
106