【PyTorch深度学习-龙龙老师】-测试版202112预览版202112 第 3 章 分类问题 2 集共 70000 张图片。其中 60000 张图片作为训练集?train(Training Set),用来训练模型,剩 下 10000 张图片作为测试集?test(Test Set),用来预测或者测试,训练集和测试集共同组成 了整个 MNIST 数据集。 考虑到手写数字图片包含的信息比较简单,每张图片均被缩放到28 × 28的大小,同时 预览版202112 3.8 手写数字图片识别体验 11 nn.Linear(28*28, 256) 使用 Sequential 容器可以非常方便地搭建多层的网络。对于 3 层网络,我们可以通过快速 完成 3 层网络的搭建。 # 利用 Sequential 容器封装 3 个网络层,前网络层的输出默认作为下一层的输入 model = nn.Sequential( # 创建第一层,输入为 PyTorch 张量的数据导出为 numpy 数组格式 Out[3]: array([1. , 2. , 3.3], dtype=float32) 创建向量、矩阵、张量等,可以通过 List 容器传给 torch.tensor()函数。例如,创建一 个元素的向量,代码如下: In [4]: a = torch.tensor([1.2]) # 创建一个元素的向量 a, a.shape0 码力 | 439 页 | 29.91 MB | 1 年前3
《TensorFlow 2项目进阶实战》2-快速上手篇:动⼿训练模型和部署服务中使用 TensorFlow 2 在 Jupyter Lab 中使用 TensorFlow 2 在 Jupyter Lab 中使用 TensorFlow 2 Docker 容器 与 虚拟机 虚拟机 Docker 容器 在 Docker 中使用 TensorFlow 2 在 Docker 中使用 TensorFlow 2 在 Docker 中使用 TensorFlow 2 “Hello digits, available from this page, has a training set of 60,000 examples, and a test set of 10,000 examples. It is a subset of a larger set available from NIST. The digits have been size- normalized0 码力 | 52 页 | 7.99 MB | 1 年前3
机器学习课程-温州大学-01机器学习-引言⚫列表(list) 用来存储一连串元素的容器,列表用[ ]来表示,其中元素的类型可不相同。 ⚫元组(tuple) 元组类似列表,元组里面的元素也是进行索引计算。列表里面的元素的值可以修改,而元组 里面的元素的值不能修改,只能读取。元组的符号是( ) ⚫集合(set) 集合主要有两个功能,一个功能是进行集合操作,另一个功能是消除重复元素。 集合的格式 是:set( ),其中()内可以是列表、字典或字符串,因为字符串是以列表的形式存储的 图,错误图,散点图等。 https://matplotlib.org/gallery/index.html 70 Python模块-Matplotlib 图形的各元素名称如下: 绘图框 是图形的最高容器,所 有图形必须放置在绘图框中. 子图 是绘图框中所包含的图形 ,即便绘图框只包含一幅图,也 称之为子图. 元素 是组成子图的部件,从子 图最内部的数据线条到外围的坐 标轴标签等都属于元素0 码力 | 78 页 | 3.69 MB | 1 年前3
机器学习课程-温州大学-01深度学习-引言⚫列表(list) 用来存储一连串元素的容器,列表用[ ]来表示,其中元素的类型可不相同。 ⚫元组(tuple) 元组类似列表,元组里面的元素也是进行索引计算。列表里面的元素的值可以修改,而元组 里面的元素的值不能修改,只能读取。元组的符号是( ) ⚫集合(set) 集合主要有两个功能,一个功能是进行集合操作,另一个功能是消除重复元素。 集合的格式 是:set( ),其中()内可以是列表、字典或字符串,因为字符串是以列表的形式存储的 图,错误图,散点图等。 https://matplotlib.org/gallery/index.html 71 Python模块-Matplotlib 图形的各元素名称如下: 绘图框 是图形的最高容器,所 有图形必须放置在绘图框中. 子图 是绘图框中所包含的图形 ,即便绘图框只包含一幅图,也 称之为子图. 元素 是组成子图的部件,从子 图最内部的数据线条到外围的坐 标轴标签等都属于元素0 码力 | 80 页 | 5.38 MB | 1 年前3
《TensorFlow 2项目进阶实战》6-业务落地篇:实现货架洞察Web应⽤ORM 选型 • 搭建 AI SaaS 理论:10 分钟快速开发 AI SaaS • 搭建 AI SaaS 实战:10 分钟快速开发 AI SaaS • 交付 AI SaaS:10 分钟快速掌握容器部署 • 交付 AI SaaS:部署和测试 AI SaaS 目录 串联 AI 流程理论:商品检测与商品识别 检测模型 RetinaNet 前向转换和使用 加载检测推理模型 detector AI SaaS:10 分钟快速掌握容器部署 更新依赖 requirements.txt 为 AI SaaS 编写 Dockerfile 为 AI SaaS 构建 Docker 镜像(TF 容器外) $ docker build –t tf2-ai-saas -f ai_saas/Dockerfile . 为 AI SaaS 构建 Docker 镜像(TF 容器外) $ docker build0 码力 | 54 页 | 6.30 MB | 1 年前3
QCon北京2018-《未来都市--智慧城市与基于深度学习的机器视觉》-陈宇恒Kubernetes在异构系统调度中的挑战 • Kubernetes版本发布快,新特性更新频繁,对异构调度的支持不断加强;但配套设施落后(e.g. Spark on K8s, GitlabCI) • 容器系统调用栈深,需要仔细验证操作系统,内核及异构设备驱动的兼容性 • Kubernetes对NUMA、异构计算、存储设备的调度能力待加强 1.6 nvidia/gpu custom scheduler0 码力 | 23 页 | 9.26 MB | 1 年前3
亚马逊AWSAI Services Overviewcores MXNet TensorFlow Theano Caffe Torch 预配置的 CUDA 驱动 Anaconda, Python3 + CloudFormation 模版 + 容器镜像文件 全新的 EC2 P2 实例 | 高达16 块 GPUs ▪ 这款新实例类型包含了高达 8个 NVIDIA Tesla K80 Accelerators, 每个运行一对 NVIDIA GK2100 码力 | 56 页 | 4.97 MB | 1 年前3
阿里云上深度学习建模实践-程孟力机器学习框架(PAI-TensorFlow/PAI-PyTorch/Caffe /Alink/…) 计算引擎(MaxCompute / EMR / Flink) 基础硬件(CPU/GPU/FPGA/NPU) 阿里云容器服务(ACK) • 200+组件 • 数十个场景化模版 • 所见即所得 交互式建模(DSW) • JupyterLab、WebIDE • 多框架兼容 • 可视化+tensorboard0 码力 | 40 页 | 8.51 MB | 1 年前3
《Efficient Deep Learning Book》[EDL] Chapter 7 - AutomationA Search Space for n parameters is a n-dimensional region such that a point in such a region is a set of well-defined values for each of those parameters. The parameters can take discrete or continuous hyperparameters to differentiate them from model parameters. The performance of deep learning relies on a set of good hyperparameters. Some of the commonly tuned hyperparameters are the learning rate and the momentum model. HPO performs trials with different sets of hyperparameters using the model as a blackbox. The set which performs the best is chosen for full training. In the next section, we'll discuss various approaches0 码力 | 33 页 | 2.48 MB | 1 年前3
keras tutorialfloatx represent the default data type float32. You can also change it to float16 or float64 using set_floatx() method. backend denotes the current backend. Suppose, if the file is not created then required information from the data. Split data: Split the data into training and test data set. Test data will be used to evaluate the prediction of the algorithm / Model (once the machine learn) Fit the model: The actual learning process will be done in this phase using the training data set. Predict result for unknown value: Predict the output for the unknown input data (other than0 码力 | 98 页 | 1.57 MB | 1 年前3
共 46 条
- 1
- 2
- 3
- 4
- 5













