04 2021 档案

摘要:见文章:https://blog.csdn.net/qq_36743482/article/details/114678409 https://blog.csdn.net/qq_37555071/article/details/107990457 pd.Series() pd.DataFrame() 阅读全文
posted @ 2021-04-22 18:21 qclan 阅读(223) 评论(0) 推荐(0)
摘要:random.shuffle(indices)将序列的所有元素随机排序。 阅读全文
posted @ 2021-04-08 11:07 qclan 阅读(351) 评论(0) 推荐(0)
摘要:range(start, stop, step) 开始,结束,步长 list()用于列清单。 就是range(1,6,3)输出的并不是一个数组,还是这个东西,想要用里面的数,需要再用list洗它一遍 eg:输入 1 A=range(1,6,2) 2 B=list(A) 3 print(A) 4 pr 阅读全文
posted @ 2021-04-08 11:06 qclan 阅读(214) 评论(0) 推荐(0)
摘要:jupyter无法画图,不断重启的话,把这个代码放在最前面。好像是因为某些环境重复配置了? import os os.environ['KMP_DUPLICATE_LIB_OK']='True' L.append(b) 列表末尾添加新的对象 2.1数据操作2.1.1入门x = torch.arang 阅读全文
posted @ 2021-04-08 10:58 qclan 阅读(1335) 评论(0) 推荐(0)
摘要:torch.normal(A, B ,size(C, D), requires_grad=True) A表示均值,B表示标准差 ,C代表生成的数据行数,D表示列数,requires_grad=True表示对导数开始记录,可以忽略。 1 import torch 2 w = torch.normal( 阅读全文
posted @ 2021-04-08 10:54 qclan 阅读(5283) 评论(0) 推荐(1)