上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 72 下一页
摘要: Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian 阅读全文
posted @ 2019-01-11 13:40 乐乐章 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers 阅读全文
posted @ 2019-01-11 13:18 乐乐章 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: Input: "25525511135" Output: ["255 阅读全文
posted @ 2019-01-10 22:49 乐乐章 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 和 threading 的比较 多进程 Multiprocessing 和多线程 threading 类似, 他们都是在 python 中用来并行运算的. 不过既然有了 threading, 为什么 Python 还要出一个 multiprocessing 呢? 原因很简单, 就是用来弥补 thre 阅读全文
posted @ 2019-01-10 22:25 乐乐章 阅读(393) 评论(0) 推荐(0) 编辑
摘要: thread 在数据预处理的时候用处不大,因为有GIL 锁 查看thread信息 定义thread job并开启 join()的功能 先运行join的功能,然后再运行join 下面的。 注释掉 19、20 你也可以添加thread_2.join()进行尝试,但为了规避不必要的麻烦,推荐如下这种122 阅读全文
posted @ 2019-01-10 19:00 乐乐章 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 完整代码:https://github.com/zle1992/Reinforcement_Learning_Game 论文《Continuous control with deep reinforcement learning》https://arxiv.org/pdf/1509.02971.pd 阅读全文
posted @ 2019-01-09 22:41 乐乐章 阅读(4375) 评论(0) 推荐(0) 编辑
摘要: 完整代码:https://github.com/zle1992/Reinforcement_Learning_Game Policy Gradient 可以直接预测出动作,也可以预测连续动作,但是无法单步更新。 QLearning 先预测出Q值,根据Q值选动作,无法预测连续动作、或者动作种类多的情况 阅读全文
posted @ 2019-01-09 12:12 乐乐章 阅读(2053) 评论(0) 推荐(0) 编辑
摘要: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac 阅读全文
posted @ 2019-01-09 10:18 乐乐章 阅读(145) 评论(0) 推荐(0) 编辑
摘要: https://github.com/zle1992/Reinforcement_Learning_Game 主函数 阅读全文
posted @ 2019-01-08 22:37 乐乐章 阅读(562) 评论(0) 推荐(0) 编辑
摘要: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example 1: Input: [ [1,1,1], [1,0,1], [1,1,1] ] Output: 阅读全文
posted @ 2019-01-08 17:13 乐乐章 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 72 下一页