上一页 1 ··· 174 175 176 177 178 179 180 181 182 ··· 273 下一页
摘要: Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n 阅读全文
posted @ 2018-02-28 23:21 bonelee 阅读(270) 评论(0) 推荐(0)
摘要: 他会自己下载数据: 打开tensotboard: tensorboard --logdir=/tmp/tflearn_logs/ 通过tensorboard查看准确率变化以及loss变化,上图是跑了10个epoch的结果。 阅读全文
posted @ 2018-02-28 22:06 bonelee 阅读(478) 评论(1) 推荐(0)
摘要: 最后这张图特别能够说明问题!!! 然后再看张俊林的文章,应该就彻底明白了。 摘自:http://blog.csdn.net/malefactor/article/details/50550211 要是关注深度学习在自然语言处理方面的研究进展,我相信你一定听说过Attention Model(后文有时 阅读全文
posted @ 2018-02-28 18:25 bonelee 阅读(1008) 评论(0) 推荐(2)
摘要: from:https://baijiahao.baidu.com/s?id=1584177164196579663&wfr=spider&for=pc seq2seq模型是以编码(Encode)和解码(Decode)为代表的架构方式,seq2seq模型是根据输入序列X来生成输出序列Y,在翻译,文本自 阅读全文
posted @ 2018-02-28 16:57 bonelee 阅读(19470) 评论(0) 推荐(0)
摘要: 比如我写的: 参考: https://stackoverflow.com/questions/45046265/internetdomainname-and-publicsuffix-list https://github.com/google/guava/blob/master/guava/src 阅读全文
posted @ 2018-02-28 09:31 bonelee 阅读(1962) 评论(0) 推荐(0)
摘要: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or 阅读全文
posted @ 2018-02-27 20:29 bonelee 阅读(207) 评论(0) 推荐(0)
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2018-02-27 20:05 bonelee 阅读(196) 评论(0) 推荐(0)
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of stone 阅读全文
posted @ 2018-02-27 19:23 bonelee 阅读(278) 评论(0) 推荐(0)
摘要: 比如我将string作为CNN 文本处理输入: 其中,vocabMap为词汇表。构建方法: 注意每一次迭代都是int。 下面是详细解释: 循环遍历Java字符串的字符的规范方法: http://stackoverflow.com/questions/1527856/how-can-i-iterate 阅读全文
posted @ 2018-02-26 16:51 bonelee 阅读(4015) 评论(0) 推荐(0)
摘要: 背景:希望将pickle转换为json,由于pickle里有utf8的字符,因此转换失败。 转换代码如下: 修正后的代码:因为pickle自身是latin编码,需要转换为utf8再给json编码。 尤其注意: python2的json是无法处理,包含utf8和unicode两种编码的!比如仅仅包含u 阅读全文
posted @ 2018-02-26 12:09 bonelee 阅读(2452) 评论(2) 推荐(0)
上一页 1 ··· 174 175 176 177 178 179 180 181 182 ··· 273 下一页