作者 Hongyi Zhang 张宏毅 @ 张宏毅知乎 北大->MIT 论文所属FAIR Abstract 深度神经网络有些不好的行为:强记忆和对对抗样本敏感 Christian Szegedy等人在ICLR2014发表的论文中,他们提出了对抗样本(Adversarial examples)的概念, ...
分类:
其他好文 时间:
2018-03-08 02:55:23
阅读次数:
756
TensorFlow训练神经网络的4个步骤: 1、定义算法公式,即训练神经网络的forward时的计算 2、定义损失函数和选择优化器来优化loss 3、训练步骤 4、对模型进行准确率评测 附Multi-Layer Perceptron代码: 1 from tensorflow.examples.tu ...
分类:
其他好文 时间:
2018-03-06 21:47:21
阅读次数:
147
直接附上代码: 1 import numpy as np 2 import sklearn.preprocessing as prep 3 import tensorflow as tf 4 from tensorflow.examples.tutorials.mnist import input_ ...
分类:
Web程序 时间:
2018-03-06 21:39:27
阅读次数:
421
功能:用切换图片0-9效果显示当前系统时间 属性:img的src 1.用到 new Date() getHours(),getMinutes(),getSeconds() getFullyear(),getMouth()+1月数需要加1,getDay()星期为0,1,2,3,4,5,6 2.单位数转 ...
分类:
其他好文 时间:
2018-03-06 19:12:10
阅读次数:
168
十进制转成十六进制: Integer.toHexString(int i) 十进制转成八进制 Integer.toOctalString(int i) 十进制转成二进制 Integer.toBinaryString(int i) 十六进制转成十进制 Integer.valueOf("FFFF",16 ...
分类:
编程语言 时间:
2018-03-05 15:30:29
阅读次数:
185
ltrim (PHP 4, PHP 5, PHP 7) ltrim — Strip whitespace (or other characters) from the beginning of a string ltrim — 删除字符串开头的空白字符(或其他字符) Description Para ...
分类:
Web程序 时间:
2018-03-04 18:03:56
阅读次数:
230
下面是JDK中有关23个经典设计模式的示例,在stakeoverflow也有相应的讨论: http://stackoverflow.com/questions/1673841/examples-of-gof-design-patterns Structural(结构模式) Adapter: 把一个接 ...
分类:
其他好文 时间:
2018-03-03 22:29:30
阅读次数:
226
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2018-03-03 12:18:35
阅读次数:
129
传送门: Example1: index.js 命令这样执行: node ./index.js --name 123 --path 456 当然也可以这样执行:node ./index.js -n 123 但建议还是使用 '--' 避免冲突。 Example2: 无参数的值如何获取? argv._ ...
分类:
Web程序 时间:
2018-03-03 12:14:55
阅读次数:
296
Log levels nxlog4go provides log levels as below: , are more useful. , may cause the program exited. , may crash the program. , used during configurat ...
分类:
其他好文 时间:
2018-03-02 01:15:50
阅读次数:
181