上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 107 下一页
摘要: 1.定义+compile self.model = Model(inputs=[self.input_layer, self.sf_layer], outputs=output) #或 model = Sequential([ Dense(32, input_shape=(784,)), Activ 阅读全文
posted @ 2021-01-29 13:46 lypbendlf 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1.724. 寻找数组的中心索引,前缀和边计算边遍历,无需真的申请一个向量来保存。 2.1109. 航班预订统计,差分数组,【单点更新,范围查询,就用线段树。范围更新,单独查询,就用差分数组】更新一个范围,但单点查询每个的值,就用差分数组,diff[i]=res[i]-res[i-1],那么由差分数 阅读全文
posted @ 2021-01-28 19:36 lypbendlf 阅读(706) 评论(0) 推荐(1) 编辑
摘要: 1.pair对作为map的关键字key unordered_map<pair<int,int>,int> um; um.count((d[0],d[1]));#错 um.count({d[0],d[1]});#错 以上两种方式报以下错误: 不能调用已经隐式删除的构造函数。用括号和花括号都不行。 尝试 阅读全文
posted @ 2021-01-27 16:53 lypbendlf 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 转自: 1.性质 2.应用 知乎 https://www.zhihu.com/question/30527705/answer/52527887 3.插入 4.删除 5.与AVL树比较 为什么stl中的map需要用红黑,而不是AVL树呢? 知乎 https://www.zhihu.com/quest 阅读全文
posted @ 2021-01-26 20:34 lypbendlf 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/charles_ke/article/details/82497543 https://www.1point3acres.com/bbs/thread-436924-1-1.html 1.BFS 邻接矩阵存储方式时,查找每个顶点的邻接点所需时间为O( 阅读全文
posted @ 2021-01-26 16:43 lypbendlf 阅读(2901) 评论(0) 推荐(0) 编辑
摘要: 1.1128. 等价多米诺骨牌对的数量,其实这个并不是排序问题,只不过我用的是排序的解法,希望能从这个排序函数中学会写sort的cmp函数! 阅读全文
posted @ 2021-01-26 14:29 lypbendlf 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1.tf.nn.softplus https://blog.csdn.net/ai_lx/article/details/88953587 import tensorflow as tf a = tf.constant([-1.0, 12.0]) with tf.Session() as sess: 阅读全文
posted @ 2021-01-25 13:11 lypbendlf 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/ggjucheng/archive/2011/12/14/2287738.html https://www.cnblogs.com/fengliu-/p/10219850.html https://blog.csdn.net/m122385376 阅读全文
posted @ 2021-01-23 22:04 lypbendlf 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1.高斯混合分布GMM https://zhuanlan.zhihu.com/p/30483076 https://blog.csdn.net/jinping_shi/article/details/59613054 https://zhuanlan.zhihu.com/p/60649774 高斯混 阅读全文
posted @ 2021-01-22 22:00 lypbendlf 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.zhihu.com/question/266698612 下标表示相等时,为1,否则为0. 阅读全文
posted @ 2021-01-21 20:36 lypbendlf 阅读(815) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 107 下一页