python
Aistra
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
torch.scatter 或torch.gather运行速度太慢,怎么解决
可以尝试在cpu上进行运算,在上传到gpu。这类运算似乎在gpu上特别的慢原创 2021-12-30 00:07:27 · 1299 阅读 · 0 评论 -
ROCM指定gpu训练
ROCR_VISIBLE_DEVICESIt is possible to rearrange or isolate the collection of ROCm GPU/GCD devices that are available on a ROCm platform. This can be achieved at the start of an application by way of ...原创 2020-05-01 17:36:38 · 938 阅读 · 0 评论 -
smiles reaction 如何进行 Atom-mapping removal 及 canonicalization
from rdkit.Chem import rdChemReactionsfrom rdkit.Chem.rdChemReactions import RemoveMappingNumbersFromReactionsreaction = rdChemReactions.ReactionFromSmarts('[Br:1][c:2]1[cH:3][c:4]([C:11](=[O:12])...原创 2020-02-18 16:15:27 · 1044 阅读 · 0 评论 -
rdkit 不能显示2D分子图片
导入IPythonConsole即可,不需要额外操作。from rdkit.Chem.Draw import IPythonConsole原创 2020-02-18 12:31:11 · 988 阅读 · 2 评论 -
windows 环境 pip如何使用清华镜像源
1. 在C:\Users\All Users 路径下创建文件夹 pip2. 勾选显示文件拓展名3. 在pip文件夹中创建pip.txt,写入以下脚本[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple4. 更改pip.txt文件名称为pip.ini...原创 2019-01-12 13:15:49 · 4249 阅读 · 0 评论 -
numpy 创建自定义数据集
#定义数据集规模 size = 600 #生成数据集 dataA = np.random.normal((0,38),0.4,(size,2)) dataA_label = np.zeros(size) dataB = np.random.normal((0,36),0.4,(size,2)) dataB_label = np.ones(s...原创 2019-01-16 09:44:21 · 1444 阅读 · 0 评论 -
离散数学,自反性
list1 = [] #定义一个空列表str1 = input("请输入数值,用空格隔开:")list2 = str1.split(" ") #list2用来存储输入的字符串,用空格分割list2_length = len(list2)i = 0while i <= list2_length-1: list1.append(int(list2.pop())) #将list...原创 2019-04-10 17:48:19 · 5247 阅读 · 0 评论
分享