摘要:有了这个loss function以后,对于training,也是用梯度下降来做。也就是说我们现在定义出了loss function(L),我要update这个neural network里面的某个参数w,就是计算对w的偏微分, 偏微分计算出来以后,就用GD的方法去update里面的参数。在讲fee
阅读全文
摘要:首先tensorflow 不支持python3.7,只能用tf1.9 也就是说:py3.7+ tf 1.9 +keras 2.2.0 才可以 https://docs.floydhub.com/guides/environments/这个链接可以查询不同版本应该下载那个 到Tensorflow支持P
阅读全文
摘要:#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
阅读全文
摘要: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...
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 #include <utility> 6 #include <algorithm> 7 #include <vector> 8 #
阅读全文
摘要:1 map和set两种容器的底层结构都是红黑树,所以容器中不会出现相同的元素, 2 因此count()的结果只能为0和1,可以以此来判断键值元素是否存在 3 (当然也可以使用find()方法判断键值是否存在)。 4 拿map举例,find()方法返回值是一个迭代器, 5 成功返回迭代器指向要查找的元素,失败返回的迭代器指向end。 6 count()方法返回值是一个整数,1表示有这个...
阅读全文
摘要: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++){ ...
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:vector :push_back priority_queue<int,vector<int>,greater<int> >q2; //top 队首最小
阅读全文