上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: bytes_to_long() 函数在Ctypto库中,最新的3.9.9版本用如下命令去安装Crypto库: pip(3) install pycryotodome 函数引用方式:from Crypto.Util.number import bytes_to_long 使用os.urandom(le 阅读全文
posted @ 2021-01-17 15:10 爱吃砂糖橘的白龙 阅读(11492) 评论(0) 推荐(0) 编辑
摘要: 参考 https://blog.csdn.net/qq_41668789/article/details/84719348 在 scanf 和 printf 里效果是不一样的。 scanf()函数 “*”符用以表示该输入项,读入后不赋予相应的变量,即跳过该输入值。 scanf("%*d %*d %d 阅读全文
posted @ 2021-01-08 17:07 爱吃砂糖橘的白龙 阅读(669) 评论(0) 推荐(0) 编辑
摘要: roc曲线 1、roc曲线:接收者操作特征(receiveroperating characteristic),roc曲线上每个点反映着对同一信号刺激的感受性。 横轴:负正类率(false postive rate, FPR),特异度,划分实例中所有负例占所有负例的比例;(1-Specificity 阅读全文
posted @ 2021-01-07 11:04 爱吃砂糖橘的白龙 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 参考自: https://blog.csdn.net/qq_33757398/article/details/108355003 例如输入列表: [8, 2, 4] 期望输出: [2, 3, 1] 一句话可以搞定:rank = [index+1 for index, value in sorted( 阅读全文
posted @ 2021-01-05 23:00 爱吃砂糖橘的白龙 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 代码 class A: def __init__(self): self.x = 111 self.y = 'test' def testA(self, inp): print("in a class") print("{}--{}--{}".format(self.x, self.y, inp*2 阅读全文
posted @ 2021-01-04 21:42 爱吃砂糖橘的白龙 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 使用hexdump 使用xxd 阅读全文
posted @ 2021-01-03 10:42 爱吃砂糖橘的白龙 阅读(574) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/zh-CN/docs/learn Web开发手册 https://www.dazhuanlan.com/2019/11/03/5dbea390ca890/ pytorch用法 https://www.luogu.com.cn/blog/ze 阅读全文
posted @ 2020-12-24 14:37 爱吃砂糖橘的白龙 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 椭圆曲线算术理论基础 编程实现ECC模N意义下的点加法 首先分别是计算整数x、小数x对于模数N的乘法逆元的函数: # based on extended Euclidean algorithm # calc : x^(-1) mod N | x is int type # show=True mea 阅读全文
posted @ 2020-12-18 16:50 爱吃砂糖橘的白龙 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 参考 https://wonderful.blog.csdn.net/article/details/79671263?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.cont 阅读全文
posted @ 2020-12-17 13:52 爱吃砂糖橘的白龙 阅读(1904) 评论(0) 推荐(1) 编辑
摘要: 当训练集特别大的时候(数万条起步),每一轮训练仅仅希望从中随机取出一部分数据(比如batch_size=64)计算模型损失值、执行梯度下降,这就是SGD随机梯度下降。 下面是一个demo,其实训练集一共只有四条数据。 看代码1: #encoding=utf-8 import torch import 阅读全文
posted @ 2020-12-15 16:13 爱吃砂糖橘的白龙 阅读(426) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页