
机器学习
文章平均质量分 56
看客过客皆是客
举头三尺,见了便做,做了便放下,了了有何不了;
展开
-
Numpy pandas matplotlib学习笔记
笔记终是笔记,记录使用频率高的函数法宝:import numpy as npprint(help(np.array))numpyimport numpy as nparr1 = np.array([1, 2, 3, 4]) #创建一维数组print(' 创建的数组为: ',arr1)# 创建二维数组arr2 = np.array([[1, 2, 3, 4],[4, 5, 6, 7], [7, 8, 9, 10]])print('创建的数组为:\n',arr2)print('数组类型原创 2021-03-23 15:18:30 · 273 阅读 · 0 评论 -
python学习笔记
Pythona = input("请输入a的值:")print(a)print('hello\nrunoob') # 使用反斜杠(\)+n转义特殊字符print(r'hello\nrunoob') # 在字符串前面添加一个 r,表示原始字符串,不会发生转义print(5 + 4)# 加法print(4.3 - 2)# 减法print(3 * 7) # 乘法print(2 / 4)# 除法,得到一个浮点数print(2 // 4) # 除法,得到一个整数print(原创 2021-03-23 14:42:24 · 220 阅读 · 0 评论 -
Win10 Anaconda3+pytorch+cuda(GPU)
注:为啥不是Ubuntu?虚拟机!!!缺money版本选择工具包下载百度一下进入官网注意选择适合自己的安装检测注:此处如果失败,99%环境变量问题,配置一下就OK安装PyTorch选择适合自己的注:(1)管理员权限(2)Anaconda3环境变量记得配置*注:据说 -c pytorch应该去掉,那样会优先使用自己配置的源,那这个参数的意思是使用官方源 *(3)推荐使用清华源https://mirrors.tuna.tsinghua.edu.cn/help/anac原创 2021-03-19 09:14:10 · 163 阅读 · 0 评论 -
Ubuntu20.04 安装Anaconda3 TensorFlow
下载Anaconda3https://repo.anaconda.com/archive/wget -P tmp https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh安装chmod +x Anaconda3-5.3.1-Linux-x86_64.sh./Anaconda3-5.3.1-Linux-x86_64.sh期间交互一路‘yes’验证配置环境变量vi ~/.bashrcexport PATH="/h原创 2021-03-18 13:57:26 · 683 阅读 · 0 评论 -
Ubuntu20.04安装
镜像准备:http://mirrors.aliyun.com/ubuntu-releases/20.04/安装步骤:一、语言选择:English二、Installer update available选择Continue without updating三、Keyboard configuration(键盘布局)选择Done默认即可四、Network connections(网络配置)选择默认的动态获取IP地址,成功获取IP地址后,选择Done五、Configure Proxy(配置代理服务)原创 2021-03-17 14:27:01 · 4012 阅读 · 0 评论