Deep Learning With Pytorch Notes

Chapter 1 Getting Started with Deep Learning Using Pytorch

In this chapter, we will cover the following different parts of AI:

  • AI itself and its origination
  • Machine learning in the real world
  • Applications of deep learning
  • Why deep learning now
  • Deep learning framework: Pytorch
  1. Artificial Intelligence

There are several definitions of AI floating around the web, my favorite being the automation of intellectual tasks normally performed by humans.

  1. Machine Learning

Machine learning systems look at tons of data and come up with rules to predict outcomes for unseen data:

Most ML algorithms perform well on structured data. An important factor for any ML algorithm is feature engineer, while it needs a lot of time to get the features for ML algorithms.

Features engineering is challenging as they suffer from high dimensionality, such as an image of size 224 224 * 3 (height * width * channels). To store this image in computer memory, our matrix will contain 224 * 224 * 3 = 150,528 dimensions for a single image. Fortunately, a special branch of machine learning called deep learning allows you to handle these problems using modern techniques and hardware.

  1. Examples of Machine Learning in Real Life

The following are some cool products that are powered by machine learning:

  • Google Photos uses a specific form of machine learning called deep learning for grouping photos.
  • Recommendation systems, where are a family of ML algorithms, are used for recommending movies, music, and products by major companies such as Netflix, Amazon, and iTunes.
  1. Deep Learning

Traditional ML algorithms use handwritten features for extractions to train algorithms, while DL algorithms use techniques of modern tools to extract features in an automatic fashion.

The use of DL has grown tremendously in the last few years with the rise of GPU, big data, cloud platform of its services, and frameworks such as Torch, TensorFlow, Caffe, and PyTorch.

  1. Applications of Deep Learning

Some popular applications that were made possible using DL are as the following:

  • Image classification for human-readable
  • Speech recognition for human-specified
  • Machine translation/Language translation for hight-rating accuracy
    Autonomous cars
  • Siri, Google Voice, and Alexa evolves in recent years
  • Cancer detection/prediction
  1. Why Deep Learning Now

Some of the reasons are as the following:

  • Hardware availability
  • Data and algorithms
  • Deep Learning frameworks
  1. Deep Learning Framework: PyTorch

PyTorch can be used for building deep neural networks. As PyTorch was primarily built for research, it is not recommended for production usage in certain scenarios where the latency is not adaptably along with the hardware.

  1. Summary

In this chapter, we explored:

  • Artificial intelligence
  • Machine learning
  • Deep learning
  • Applications powered of above three
  • Deep Learning becomes more popular
  • A simple introduction of PyTorch

Chapter 2 Building Blocks of Neural Networks

In this chapter, we will build our first Hello World program in neural networks by covering the following topics:

  • Installing PyTorch
  • Implementing our first neural network
  • Splitting the neural network into functional blocks
  • Walking through each fundamental block covering tensors, variables, autogrades, gradients, and optimizers
  • Loading data using PyTorch
  1. Installing PyTorch

Pytorch is available as a PyTorch package and you can use conda to build it. The recommended approach for this book is to use the Anaconda Python3 distribution. To install Anaconda, please refer to the web page https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/. It is strongly recommend you use Jupyter Notebook for the examples of this book to experiment interactively. If you have Anaconda installed, then you can proceed with the following steps for PyTorch installation.

For GPU-based installation:

python 复制代码
conda install pytorch torchvision -c soumith

(to be continued)

相关推荐
冬奇Lab几秒前
Code Agent 解剖(04):系统提示词是怎么组装的,agent 的「人格」从哪来?
人工智能·开源·agent
河南凹凸环境艺术设计15 分钟前
性价比高的民宿酒店设计企业
大数据·人工智能·python
饼饼学习空间智能23 分钟前
家庭服务机器人训练数据怎么积累?仿真、真实采集与持续学习的技术路线分析
人工智能·算法·机器学习
千里念行客24027 分钟前
业绩与创新双兑现!科伦博泰的Biopharma进阶之路
大数据·人工智能
深蓝海域知识库1 小时前
评学问练考:大模型AI智能学院——重塑学习培训
人工智能
漂流瓶jz1 小时前
【AI】一文读懂大模型生态:分类/参数/结构/训练/GPU/评测/排行/社区
人工智能·llm·openai
一点一木1 小时前
Hermes Desktop 重磅更新,Bot Mode 正式上线——把你的 AI 变成一支可协作的专属团队
人工智能·agent
蛋先生DX2 小时前
你瘦不下来但大模型可以:量化原理了解一下
深度学习·算法·llm
xushichang123_2 小时前
客服中心想要依托 AI 升级客户服务体验,可选择哪些云联络中心架构方案?:优先评估 Amazon Connect+客服 AI Agent
人工智能
jikemaoshiyanshi2 小时前
企业如何借助一体化 AI 工作台赋能办公提效?Amazon Quick 可适配哪些企业业务场景?—— 从智能问答、数据解析到流程自动化的全域 AI 能力平台
人工智能