初始化 分别使用0、随机数和抑梯度异常初始化参数,比较发现抑梯度异常初始化参数可以得到更高的准确度。 原始数据: import numpy as np import matplotlib.pyplot as plt import sklearn import sklearn.datasets fro ...
分类:
其他好文 时间:
2020-06-11 22:09:49
阅读次数:
57
练习 # 2.看代码写结果 # # def func(): # return 1,2,3 # # val = func() # print( type(val) == tuple ) # print( type(val) == list ) # # True # # False # 3.看代码写结果 ...
分类:
编程语言 时间:
2020-06-11 21:49:17
阅读次数:
62
关键点一:将虚函数定义为private然后用一个非虚函数来包装它 1 class GameCharacter{ 2 public: 3 int healthValue()const{ 4 ... 5 int retVal = doHealthValue(); 6 ... 7 return retVa ...
分类:
其他好文 时间:
2020-06-11 21:38:34
阅读次数:
56
//主线程直接执行 console.log('1'); //丢到宏事件队列中 setTimeout(function() { console.log('2'); process.nextTick(function() { console.log('3'); }) new Promise(functi ...
分类:
其他好文 时间:
2020-06-11 20:07:47
阅读次数:
69
mysql的binlog日志的binlog_format模式与配置详解 mysql复制主要有三种方式:基于SQL语句的复制(statement-based replication, SBR),基于行的复制(row-based replication, RBR),混合模式复制(mixed-based ...
分类:
数据库 时间:
2020-06-11 20:04:34
阅读次数:
69
上个版本,我们为数字输入框增加了 DotSeparator 和 CommaSeparator,对于特殊语种会非常有用。 https://www.cnblogs.com/sanshi/p/12836430.html 比如在法语或者西班牙语的环境下,小数分隔符和千分位分隔符和我们正常的认知是不同的。 下 ...
分类:
其他好文 时间:
2020-06-11 16:57:53
阅读次数:
76
package main import ( "bufio" "fmt" "io/ioutil" "net/http" "os" ) func main() { client := &http.Client{} req,err := http.NewRequest("GET","http://tool ...
分类:
其他好文 时间:
2020-06-11 16:23:01
阅读次数:
70
以python代码为例: import requests def func(): session = requests.session() url = 'http://IP:8069/web?db=temp' # 指定数据库名称 url2 = 'http://IP:8069/stock_ex/sto ...
分类:
数据库 时间:
2020-06-11 13:47:53
阅读次数:
163
nodejs 的一步调用经历了,callback -> promise -> async await(语法糖) 模式的转变 以下是几个整理 nodejs 自带的callback -> promise 处理 util 工具包 参考使用 const util = require("util") func ...
分类:
Web程序 时间:
2020-06-11 13:40:19
阅读次数:
97
Rustlings_test1 练习过程中的随手记,很多问题也未深究,,简单问题可能直接贴改完之后的代码,..分享出来,若能帮助大家,意外乐趣 // test1.rs // This is a test for the following sections: // - Variables // - ...
分类:
其他好文 时间:
2020-06-11 13:24:30
阅读次数:
59