上一页 1 ··· 174 175 176 177 178 179 180 181 182 ··· 273 下一页
摘要: 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 阅读(19305) 评论(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 阅读(1923) 评论(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 阅读(185) 评论(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 阅读(185) 评论(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 阅读(250) 评论(0) 推荐(0)
摘要: 比如我将string作为CNN 文本处理输入: 其中,vocabMap为词汇表。构建方法: 注意每一次迭代都是int。 下面是详细解释: 循环遍历Java字符串的字符的规范方法: http://stackoverflow.com/questions/1527856/how-can-i-iterate 阅读全文
posted @ 2018-02-26 16:51 bonelee 阅读(3986) 评论(0) 推荐(0)
摘要: 背景:希望将pickle转换为json,由于pickle里有utf8的字符,因此转换失败。 转换代码如下: 修正后的代码:因为pickle自身是latin编码,需要转换为utf8再给json编码。 尤其注意: python2的json是无法处理,包含utf8和unicode两种编码的!比如仅仅包含u 阅读全文
posted @ 2018-02-26 12:09 bonelee 阅读(2390) 评论(2) 推荐(0)
摘要: ref: https://gist.github.com/Samurais/567ebca0f59c612eb977065008aad867 阅读全文
posted @ 2018-02-26 09:57 bonelee 阅读(755) 评论(0) 推荐(0)
摘要: CPU Information on Linux and OS X This is small blog post detailing how to obtain information on your CPU on Linux and Mac OSX. These commands give in 阅读全文
posted @ 2018-02-25 18:04 bonelee 阅读(2162) 评论(0) 推荐(0)
摘要: 查看tensorflow pb模型文件的节点信息: 效果: 参考:https://tang.su/2017/01/export-TensorFlow-network/ https://github.com/tensorflow/tensorflow/issues/15689 一些核心代码: This 阅读全文
posted @ 2018-02-23 16:27 bonelee 阅读(6676) 评论(0) 推荐(0)
上一页 1 ··· 174 175 176 177 178 179 180 181 182 ··· 273 下一页