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)

相关推荐
论文复现现场2 分钟前
ComfyUI部署MiniMax H3:8G本地卡、RTX 4090和RTX 5090怎么选?
人工智能·云计算·音视频·gpu算力
2601_962297487 分钟前
AI 自动编码将上线,谷歌 Colab 推出 Github Copilot 竞品
深度学习·代码生成·githubcopilot·ai编码·谷歌colab
腾视科技-AI21 分钟前
超低功耗 性能卓越|腾视科技重磅推出TS-SG-SM9系列AI算力模组,引领边缘智能计算新篇章!
人工智能·科技·ai·ai算力模组·ai模组·腾视科技·ai算力盒
政企项目老覃44 分钟前
大模型幻觉治理与自动评测:金融风控场景的落地实践
人工智能·算法·机器学习
SuperHeroWu71 小时前
【HarmonyOS AI】 通用文字识别详解
人工智能·pytorch·深度学习·通用文字识别
武子康1 小时前
商业比较词进入 AI Overview:Semrush 60 万关键词研究能说明什么
人工智能·ai·架构·agent·claude·codex·semrush
Johny_Zhao1 小时前
网络安全等级保护测评实施方案
linux·网络·人工智能·网络安全·信息安全·云计算·等保测评·系统运维·itsm
鲲穹AI种草1 小时前
文本内容规范化整理,多款 AI 格式化工具能力客观记录
人工智能·文本内容
冬奇Lab1 小时前
一天一个开源项目(第211篇):prime-agent —— 会自我改进的 RLM 编码智能体
人工智能·开源·资讯