上一页 1 2 3 4 5 6 ··· 35 下一页

2019年7月16日

ubuntu18.04-安装最新cmake

摘要: https://www.linuxidc.com/Linux/2018-09/154165.htm 阅读全文

posted @ 2019-07-16 16:06 JASONlee3 阅读(1367) 评论(0) 推荐(0) 编辑

sublime text 3 Package Control无法下载插件

摘要: Package Control无法下载插件,发现是因为被墙了。 ubuntu18.04 下使用privoxy设置全局参见:https://www.cnblogs.com/linjunfu/p/11010017.html 阅读全文

posted @ 2019-07-16 16:04 JASONlee3 阅读(131) 评论(0) 推荐(0) 编辑

2019年7月9日

Leetcode_897. Increasing Order Search Tree

摘要: 题目:https://leetcode.com/problems/increasing-order-search-tree/ 题意: 将一棵二叉搜索树,重排为一棵递增的二叉排序树。 解法1: rson->root->left的顺序依次遍历整棵树,途中使用头插法建立链表(递增的二叉搜索树)。 这样做会 阅读全文

posted @ 2019-07-09 16:26 JASONlee3 阅读(60) 评论(0) 推荐(0) 编辑

2019年7月8日

二叉树非递归前序、中序、后序遍历

摘要: 1.二叉树前序遍历: 节点定义: Leetcode144: https://leetcode.com/problems/binary-tree-preorder-traversal/ 2.二叉树中序遍历: Leetcode94: https://leetcode.com/problems/binar 阅读全文

posted @ 2019-07-08 10:16 JASONlee3 阅读(151) 评论(0) 推荐(0) 编辑

2019年6月23日

leetcode_1095. Find in Mountain Array_[Binary Search]

摘要: https://leetcode.com/problems/find-in-mountain-array/ 题意:给定一个MountainArray(定义见题目),找到其中最早出现的target值的下标。 MountainArray.get() 函数调用不能超过100次。 解法:首先使用Binary 阅读全文

posted @ 2019-06-23 12:23 JASONlee3 阅读(160) 评论(0) 推荐(0) 编辑

2019年6月2日

强化学习_Deep Q Learning(DQN)_代码解析

摘要: Deep Q Learning 使用gym的CartPole作为环境,使用QDN解决离散动作空间的问题。 一、导入需要的包和定义超参数 二、DQN构造函数 1、初始化经验重放buffer; 2、设置问题的状态空间维度,动作空间维度; 3、设置e-greedy的epsilon; 4、创建用于估计q值的 阅读全文

posted @ 2019-06-02 21:47 JASONlee3 阅读(5978) 评论(1) 推荐(1) 编辑

2019年5月26日

强化学习_PolicyGradient(策略梯度)_代码解析

摘要: 使用策略梯度解决离散action space问题。 一、导入包,定义hyper parameter 二、PolicyGradient Agent的构造函数: 1、设置问题的状态空间维度,动作空间维度; 2、序列采样的存储结构; 3、调用创建用于策略函数近似的神经网络的函数,tensorflow的se 阅读全文

posted @ 2019-05-26 16:37 JASONlee3 阅读(2159) 评论(0) 推荐(0) 编辑

leetcode_1053. Previous Permutation With One Swap

摘要: 1053. Previous Permutation With One Swap https://leetcode.com/problems/previous-permutation-with-one-swap/ 题意:Given an array A of positive integers (n 阅读全文

posted @ 2019-05-26 14:15 JASONlee3 阅读(309) 评论(0) 推荐(0) 编辑

leetcode_1052. Grumpy Bookstore Owner

摘要: 1052. Grumpy Bookstore Owner https://leetcode.com/problems/grumpy-bookstore-owner/ 题意:每个时刻i会有customer[i]个顾客进店,在i时刻店主的情绪是grumpy[i],若grumpy[i]==1则店主脾气暴躁 阅读全文

posted @ 2019-05-26 14:08 JASONlee3 阅读(210) 评论(0) 推荐(0) 编辑

2019年5月19日

Tensorflow_入门学习_2_一个神经网络栗子

摘要: 3.0 A Neural Network Example 载入数据: ont_hot:将数据集的标签转换为ont-hot编码, i.e. “4”:[0, 0, 0, 0, 1, 0, 0, 0, 0, 0]。 3.1 Setting things up 1.为训练数据创建placeholder变量 阅读全文

posted @ 2019-05-19 21:16 JASONlee3 阅读(197) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 35 下一页

导航