![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
欧气测不准
这个作者很懒,什么都没留下…
展开
-
pip使用阿里云镜像源安装模块
【代码】pip使用阿里云镜像源安装模块。原创 2023-08-30 23:02:08 · 364 阅读 · 1 评论 -
Deeplizard《Pytorch神经网络高效入门教程》笔记
Deeplizard《Pytorch神经网络高效入门教程》笔记 硬件基础:GPU、Cuda GPU比起CPU更适合并行计算 机器学习中的计算多为可分解为并行计算的问题 Cuda是管理GPU的软件API # 查看GPU的设备数量: print(torch.cuda.device_count()) # 使用Cuda之前都需要检测一下cuda是否可用,没检测就默认没有 print(torch.cuda.is_available()) Pytorch可以使用多块GPU,Cuda可以指定GPU索引 为什么不在GP原创 2021-08-02 16:03:39 · 1081 阅读 · 0 评论 -
python计算加权平均分
绩点计算规则:(加权平均分-50)/10 故代码实现如下: 本质:求加权平均数 import numpy as np import pandas as pd score = pd.read_excel(r"C:\Users\Lenovo\Desktop\理想成绩.xlsx") print("加权平均分为:") print((score['weight'].mul(score['score'])).sum()/score['weight'].sum()) print("加权平均绩点为:") print(原创 2021-07-10 22:30:02 · 2227 阅读 · 1 评论