会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
苟不理包子
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2020年4月9日
搭模型时常用的numpy公式,不定时更新~
摘要: np.random.uniform(low,high,size) 功能:从一个均匀分布[low,high)中随机采样,注意定义域是左闭右开,即包含low,不包含high. 参数介绍: low: 采样下界,float类型,默认值为0; high: 采样上界,float类型,默认值为1; size: 输
阅读全文
posted @ 2020-04-09 22:33 苟不理包子
阅读(174)
评论(0)
推荐(0)
2020年4月8日
Failed to connect to github.com port 443: Timed out
摘要: 解决办法: git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy http://127.0.0.1:1080
阅读全文
posted @ 2020-04-08 16:03 苟不理包子
阅读(3217)
评论(0)
推荐(0)
2020年4月3日
linux和colab上安装torch_geometric踩坑记录,安装过程
摘要: 官方文档:https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html 按照官方文档,确保cuda和nvcc版本一致 $ python -c "import torch; print(torch.version.
阅读全文
posted @ 2020-04-03 08:02 苟不理包子
阅读(2706)
评论(0)
推荐(0)
2020年3月24日
python的extend用法
摘要: 根据官方文档: 示例: sen = ['today', 'is', 'a'] print(sen) sen.extend([3] * 3) print(sen) 输出: ['today', 'is', 'a'] ['today', 'is', 'a', 3, 3, 3]
阅读全文
posted @ 2020-03-24 13:01 苟不理包子
阅读(4258)
评论(0)
推荐(0)
2020年3月23日
python list 和 numpy array的区别
摘要: 一个numpy array 是内存中一个连续块,并且array里的元素都是同一类(例如整数)。所以一旦确定了一个array,它的内存就确定了,那么每个元素(整数)的内存大小都确定了(4 bytes)。 list完全不同,它的每个元素其实是一个地址的引用,这个地址又指向了另一个元素,这些元素的在内存里
阅读全文
posted @ 2020-03-23 11:39 苟不理包子
阅读(1774)
评论(0)
推荐(0)
python string 模块
摘要: >>> import string >>> dir(string) ['Formatter', 'Template', '_ChainMap', '_TemplateMetaclass', '__all__', '__built ins__', '__cached__', '__doc__', '_
阅读全文
posted @ 2020-03-23 11:04 苟不理包子
阅读(186)
评论(0)
推荐(0)
上一页
1
2
公告