随笔分类 -  STL

Recurrent neural network(RNN) 循环神经网络 (下)
摘要:有了这个loss function以后,对于training,也是用梯度下降来做。也就是说我们现在定义出了loss function(L),我要update这个neural network里面的某个参数w,就是计算对w的偏微分, 偏微分计算出来以后,就用GD的方法去update里面的参数。在讲fee 阅读全文

posted @ 2020-03-02 14:44 cltt 阅读(565) 评论(0) 推荐(0) 编辑

win10 python3.7 Anaconda3 安装tensorflow+Keras
摘要:首先tensorflow 不支持python3.7,只能用tf1.9 也就是说:py3.7+ tf 1.9 +keras 2.2.0 才可以 https://docs.floydhub.com/guides/environments/这个链接可以查询不同版本应该下载那个 到Tensorflow支持P 阅读全文

posted @ 2020-02-25 14:10 cltt 阅读(2439) 评论(0) 推荐(0) 编辑

第N个丑数
摘要:#include <bits/stdc++.h> using namespace std; #define ll long long /* 把只包含质因子2、3和5的数称作丑数(Ugly Number)。 例如6、8都是丑数,但7、14不是,因为它们包含质因子7。 习惯上我们把1当做是第一个丑数。 */ //第N个丑数 ll a[3]={2,3,5}; int main() { int n; sc 阅读全文

posted @ 2019-09-16 22:27 cltt 阅读(163) 评论(0) 推荐(0) 编辑

STACK
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 using namespace std; 13 #define pi acos(-1.0) 14 #d... 阅读全文

posted @ 2019-03-15 16:17 cltt 阅读(126) 评论(0) 推荐(0) 编辑

queue
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 #include <utility> 6 #include <algorithm> 7 #include <vector> 8 # 阅读全文

posted @ 2019-03-12 19:14 cltt 阅读(181) 评论(0) 推荐(0) 编辑

map
摘要:1 map和set两种容器的底层结构都是红黑树,所以容器中不会出现相同的元素, 2 因此count()的结果只能为0和1,可以以此来判断键值元素是否存在 3 (当然也可以使用find()方法判断键值是否存在)。 4 拿map举例,find()方法返回值是一个迭代器, 5 成功返回迭代器指向要查找的元素,失败返回的迭代器指向end。 6 count()方法返回值是一个整数,1表示有这个... 阅读全文

posted @ 2018-11-17 11:01 cltt 阅读(158) 评论(0) 推荐(0) 编辑

set
摘要:1 sets1; 2 multisets2; 3 int x; 4 for(int i=1;is; 3 int main() 4 { 5 for(int i=1;ise; 4 set::iterator it1,it2,it3; 5 int main() 6 { 7 for(int i=1;i<=5;i++){ ... 阅读全文

posted @ 2018-11-17 10:52 cltt 阅读(155) 评论(0) 推荐(0) 编辑

ACM-ICPC 2018 徐州赛区网络预赛 G. Trace
摘要:There's a beach in the first quadrant. And from time to time, there are sea waves. A wave ( xx , yy ) means the wave is a rectangle whose vertexes are 阅读全文

posted @ 2018-09-11 22:23 cltt 阅读(284) 评论(0) 推荐(0) 编辑

hdu 5437
摘要:Alisha’s Party Time Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 7514 Accepted Submission(s): 174 阅读全文

posted @ 2018-09-09 11:08 cltt 阅读(117) 评论(0) 推荐(0) 编辑

基础
摘要:vector :push_back priority_queue<int,vector<int>,greater<int> >q2; //top 队首最小 阅读全文

posted @ 2018-08-31 00:51 cltt 阅读(151) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示