上一页 1 ··· 169 170 171 172 173 174 175 176 177 ··· 273 下一页
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2018-03-14 23:09 bonelee 阅读(166) 评论(0) 推荐(0)
摘要: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
posted @ 2018-03-14 22:50 bonelee 阅读(167) 评论(0) 推荐(0)
摘要: Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri 阅读全文
posted @ 2018-03-14 22:08 bonelee 阅读(422) 评论(0) 推荐(0)
摘要: from:http://blog.csdn.net/xbinworld/article/details/44901865 需要的背景知识 要学习RBM需要的一些基本的统计学习基础,包括贝叶斯定理,随机采样方法(Gibbs sampling)等。这些可以翻阅我之前写的一些博文可以看到相关的介绍,在本文 阅读全文
posted @ 2018-03-14 10:43 bonelee 阅读(1366) 评论(2) 推荐(0)
摘要: 1.初识Auto Encoder1986 年Rumelhart 提出自动编码器的概念,并将其用于高维复杂数据处理,促进了神经网络的发展。自编码神经网络是一种无监督学习算法,它使用了反向传播算法,并让目标值等于输入值,比如 。图1是一个自编码神经网络的示例。 自动编码器(autoencoder) 是神 阅读全文
posted @ 2018-03-14 10:21 bonelee 阅读(6023) 评论(1) 推荐(0)
摘要: 自动编码器是一种有三层的神经网络:输入层、隐藏层(编码层)和解码层。该网络的目的是重构其输入,使其隐藏层学习到该输入的良好表征。 自动编码器的目标是学习函数 h(x)≈x。换句话说,它要学习一个近似的恒等函数,使得输出 x^ 近似等于输入 x。自动编码器属于神经网络家族,但它们也和 PCA(主成分分 阅读全文
posted @ 2018-03-14 10:13 bonelee 阅读(3139) 评论(2) 推荐(0)
摘要: Invert a binary tree. to 解法1: 本质是输的先序遍历 解法2,上述DFS的迭代解法: 解法3,使用BFS: 阅读全文
posted @ 2018-03-13 23:27 bonelee 阅读(202) 评论(0) 推荐(0)
摘要: 拿来主义: 解释如下: timestamp转换为datetime 要把timestamp转换为datetime,使用datetime提供的fromtimestamp()方法: 注意到timestamp是一个浮点数,它没有时区的概念,而datetime是有时区的。上述转换是在timestamp和本地时 阅读全文
posted @ 2018-03-13 12:09 bonelee 阅读(2064) 评论(0) 推荐(0)
摘要: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length 阅读全文
posted @ 2018-03-12 23:20 bonelee 阅读(185) 评论(0) 推荐(0)
摘要: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l 阅读全文
posted @ 2018-03-12 22:43 bonelee 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 169 170 171 172 173 174 175 176 177 ··· 273 下一页