会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mr.Higgerw
越努力,越幸运
博客园
首页
联系
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
16
下一页
2021年1月17日
python之bytes_to_long()函数与isprintable()函数
摘要: 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 爱吃砂糖橘的白龙
阅读(12424)
评论(0)
推荐(0)
2021年1月8日
C语言格式化字符串细节 --- %*s %*c %*.*s
摘要: 参考 https://blog.csdn.net/qq_41668789/article/details/84719348 在 scanf 和 printf 里效果是不一样的。 scanf()函数 “*”符用以表示该输入项,读入后不赋予相应的变量,即跳过该输入值。 scanf("%*d %*d %d
阅读全文
posted @ 2021-01-08 17:07 爱吃砂糖橘的白龙
阅读(789)
评论(0)
推荐(0)
2021年1月7日
ROC曲线与AUC计算总结
摘要: roc曲线 1、roc曲线:接收者操作特征(receiveroperating characteristic),roc曲线上每个点反映着对同一信号刺激的感受性。 横轴:负正类率(false postive rate, FPR),特异度,划分实例中所有负例占所有负例的比例;(1-Specificity
阅读全文
posted @ 2021-01-07 11:04 爱吃砂糖橘的白龙
阅读(955)
评论(0)
推荐(0)
2021年1月5日
python 数字列表排序,输出对应的索引 | 转载
摘要: 参考自: 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 爱吃砂糖橘的白龙
阅读(848)
评论(0)
推荐(0)
2021年1月4日
python 类间的有趣调用
摘要: 代码 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 爱吃砂糖橘的白龙
阅读(111)
评论(0)
推荐(0)
2021年1月3日
Linux下以16进制形式显示文件内容的方法
摘要: 使用hexdump 使用xxd
阅读全文
posted @ 2021-01-03 10:42 爱吃砂糖橘的白龙
阅读(594)
评论(0)
推荐(0)
2020年12月24日
一些书签
摘要: 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 爱吃砂糖橘的白龙
阅读(106)
评论(0)
推荐(0)
2020年12月18日
椭圆曲线算数原理与实现
摘要: 椭圆曲线算术理论基础 编程实现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 爱吃砂糖橘的白龙
阅读(555)
评论(0)
推荐(0)
2020年12月17日
中国剩余定理来解密RSA密文
摘要: 参考 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 爱吃砂糖橘的白龙
阅读(1999)
评论(0)
推荐(1)
2020年12月15日
pytorch DataLoader模块的使用
摘要: 当训练集特别大的时候(数万条起步),每一轮训练仅仅希望从中随机取出一部分数据(比如batch_size=64)计算模型损失值、执行梯度下降,这就是SGD随机梯度下降。 下面是一个demo,其实训练集一共只有四条数据。 看代码1: #encoding=utf-8 import torch import
阅读全文
posted @ 2020-12-15 16:13 爱吃砂糖橘的白龙
阅读(505)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
16
下一页
公告