上一页 1 ··· 145 146 147 148 149 150 151 152 153 ··· 273 下一页
摘要: from:https://www.sohu.com/a/159976204_717210 GAN 从 2014 年诞生以来发展的是相当火热,比较著名的 GAN 的应用有 Pix2Pix、CycleGAN 等。本篇文章主要是让初学者通过代码了解 GAN 的结构和运作机制,对理论细节不做过多介绍。我们还 阅读全文
posted @ 2018-06-11 10:34 bonelee 阅读(3997) 评论(2) 推荐(2)
摘要: 参考:https://github.com/duoergun0729/3book/tree/master/code/gym-waf 代码: wafEnv.py 主代码: 效果: 阅读全文
posted @ 2018-06-08 16:10 bonelee 阅读(966) 评论(0) 推荐(0)
摘要: 使用方法: csv文件格式: 阅读全文
posted @ 2018-06-08 11:12 bonelee 阅读(17230) 评论(1) 推荐(0)
摘要: 效果: gsearch.best_params_{'max_depth': 4, 'n_estimators': 100}gsearch.best_score_0.868142228555714 阅读全文
posted @ 2018-06-08 10:09 bonelee 阅读(668) 评论(0) 推荐(0)
摘要: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a 阅读全文
posted @ 2018-06-07 23:08 bonelee 阅读(203) 评论(0) 推荐(0)
摘要: 效果图: 阅读全文
posted @ 2018-06-07 11:09 bonelee 阅读(999) 评论(0) 推荐(0)
摘要: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define 阅读全文
posted @ 2018-06-06 22:22 bonelee 阅读(288) 评论(1) 推荐(0)
摘要: 代码: 基本思路: 让他自己训练玩这个游戏(每次应该左右移动的距离),基本思路就是: 本质上就是使用MLP训练(动作,得分) 这个得分是坚持时间的长短,如果时间长得分就高。 但是我感觉这个gym自己做了很多事情,比如度量奖励分数,action描述等。待进一步挖掘! 阅读全文
posted @ 2018-06-06 17:59 bonelee 阅读(2817) 评论(0) 推荐(0)
摘要: fasttext: 效果: 可以看到一个epoch只需要10来秒,还是很快的!但是我训练到50个epoch后发现acc 100%,但是验证集上数据acc 86%,看来是过拟合了。 再看看传统cnn: 效果: Train on 25000 samples, validate on 25000 samp 阅读全文
posted @ 2018-06-06 16:22 bonelee 阅读(2244) 评论(0) 推荐(0)
摘要: model = Sequential() model.add(Conv2D(32, kernel_size=(3, 3), activation='relu', input_shape=input_shape)) model.add(Conv2D(64, (3, 3), activation='relu')) model.a... 阅读全文
posted @ 2018-06-06 15:28 bonelee 阅读(532) 评论(0) 推荐(0)
上一页 1 ··· 145 146 147 148 149 150 151 152 153 ··· 273 下一页