---
title: "Hugging Face 深度强化学习课程 Unit 2 第二部分：Q-Learning 原理与从零实现"
canonical: "https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/"
date: "2022-05-20"
updated: "2026-11-05"
source: "Hugging Face 社区博客（混合发现）"
source_url: "https://huggingface.co/blog/deep-rl-q-part2"
language: "zh"
topics: []
license: "https://new.nat6.net/sources/"
attribution: "Content is based on curated titles and AI summaries from the AIHOT public API, with attribution and links back; original copyright remains with the original publishers and authors."
---

# Hugging Face 深度强化学习课程 Unit 2 第二部分：Q-Learning 原理与从零实现

- 发布日期 / Published: 2022-05-20
- 更新时间 / Updated: 2026-11-05
- 分类 / Category: 教程与技巧
- 来源 / Source: Hugging Face 社区博客（混合发现） — [原文 / Original](https://huggingface.co/blog/deep-rl-q-part2)
- AIHOT: [条目页 / Item](https://aihot.news/items/dtxj4jrxdnleehmw4apog8x5e)
- 页面 / Page: https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/
- 结构化数据 / JSON: https://new.nat6.net/api/v1/articles/dtxj4jrxdnleehmw4apog8x5e.json

- 语言 / Languages: [zh](https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/) · [en](https://new.nat6.net/en/news/dtxj4jrxdnleehmw4apog8x5e/) · [de](https://new.nat6.net/de/news/dtxj4jrxdnleehmw4apog8x5e/) · [fr](https://new.nat6.net/fr/news/dtxj4jrxdnleehmw4apog8x5e/) · [ru](https://new.nat6.net/ru/news/dtxj4jrxdnleehmw4apog8x5e/) · [ja](https://new.nat6.net/ja/news/dtxj4jrxdnleehmw4apog8x5e/) · [es](https://new.nat6.net/es/news/dtxj4jrxdnleehmw4apog8x5e/) · [ko](https://new.nat6.net/ko/news/dtxj4jrxdnleehmw4apog8x5e/) · [vi](https://new.nat6.net/vi/news/dtxj4jrxdnleehmw4apog8x5e/) · [th](https://new.nat6.net/th/news/dtxj4jrxdnleehmw4apog8x5e/) · [id](https://new.nat6.net/id/news/dtxj4jrxdnleehmw4apog8x5e/) · [ms](https://new.nat6.net/ms/news/dtxj4jrxdnleehmw4apog8x5e/) · [fil](https://new.nat6.net/fil/news/dtxj4jrxdnleehmw4apog8x5e/) · [hi](https://new.nat6.net/hi/news/dtxj4jrxdnleehmw4apog8x5e/)

## AI 摘要 / AI summary

Hugging Face 深度强化学习课程发布 Unit 2 第二部分，讲解 Q-Learning 算法、Q-Function 与 Q-Table，以及 Epsilon Greedy 策略和 TD 更新，并区分 off-policy 与 on-policy。

## 推荐理由 / Why it matters

课程官方教程用迷宫示例逐步拆解 Q-Learning 算法和 Q 表更新，读者可跟着 Colab 从零实现第一个 RL 智能体。

## 来源与版权 / Source & copyright

内容基于 AIHOT 公开 API 的精选标题与 AI 摘要，已注明来源并回链；原文版权归原媒体与作者所有。

原文版权归原媒体与作者所有；本站不镜像全文。/ Original copyright remains with the original publishers and authors; this site does not mirror full texts.

## 关于橙子中转站 / About Orange Relay

橙子中转站（pro.nat6.net）是一家优质的 AI API 中转站：价格优惠、质量稳定、模型齐全，支持 Claude、GPT、Gemini 等主流模型，欢迎体验。

[访问橙子中转站](https://pro.nat6.net/?utm_source=orange_news&utm_medium=article_footer&utm_campaign=brand&lang=zh)

## JSON-LD

```json
{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "@id": "https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/#article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/"
  },
  "url": "https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/",
  "headline": "Hugging Face 深度强化学习课程 Unit 2 第二部分：Q-Learning 原理与从零实现",
  "description": "Hugging Face 深度强化学习课程发布 Unit 2 第二部分，讲解 Q-Learning 算法、Q-Function 与 Q-Table，以及 Epsilon Greedy 策略和 TD 更新，并区分 off-policy 与 on-policy。",
  "articleSection": "教程与技巧",
  "keywords": "AI, Hugging Face 社区博客（混合发现）",
  "datePublished": "2022-05-20T00:00:00Z",
  "dateModified": "2026-11-05T20:56:45Z",
  "inLanguage": "zh-CN",
  "isAccessibleForFree": true,
  "author": {
    "@type": "Organization",
    "name": "橙子新闻编辑部",
    "url": "https://new.nat6.net/about/"
  },
  "publisher": {
    "@type": "NewsMediaOrganization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://new.nat6.net/assets/img/logo-512.png",
      "width": 512,
      "height": 512
    }
  },
  "image": {
    "@type": "ImageObject",
    "url": "https://new.nat6.net/assets/img/og-default.png",
    "width": 1200,
    "height": 630
  },
  "isPartOf": {
    "@id": "https://new.nat6.net/#website"
  },
  "isBasedOn": "https://huggingface.co/blog/deep-rl-q-part2",
  "citation": [
    "https://aihot.news/items/dtxj4jrxdnleehmw4apog8x5e",
    "https://huggingface.co/blog/deep-rl-q-part2"
  ],
  "license": "https://new.nat6.net/sources/",
  "about": [],
  "mentions": [
    {
      "@type": "Thing",
      "name": "Hugging Face 社区博客（混合发现）"
    }
  ],
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      ".article-summary"
    ]
  },
  "copyrightHolder": {
    "@type": "Organization",
    "@id": "https://new.nat6.net/#org",
    "name": "橙子新闻",
    "url": "https://new.nat6.net/"
  },
  "creditText": "橙子新闻（AI 摘要）；原文：Hugging Face 社区博客（混合发现）",
  "copyrightNotice": "© 2022 橙子新闻。标题与 AI 摘要基于 AIHOT 公开数据，原文版权归原媒体与作者所有；本站不镜像全文。",
  "copyrightYear": 2022,
  "alternativeHeadline": "An Introduction to Q-Learning Part 2/2",
  "abstract": "课程官方教程用迷宫示例逐步拆解 Q-Learning 算法和 Q 表更新，读者可跟着 Colab 从零实现第一个 RL 智能体。",
  "subjectOf": [
    {
      "@type": "DigitalDocument",
      "name": "Hugging Face 深度强化学习课程 Unit 2 第二部分：Q-Learning 原理与从零实现 (Markdown)",
      "url": "https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/index.md",
      "encodingFormat": "text/markdown"
    },
    {
      "@type": "DigitalDocument",
      "name": "Hugging Face 深度强化学习课程 Unit 2 第二部分：Q-Learning 原理与从零实现 (JSON)",
      "url": "https://new.nat6.net/api/v1/articles/dtxj4jrxdnleehmw4apog8x5e.json",
      "encodingFormat": "application/json"
    }
  ]
}
```

## 如何引用 / How to cite

- 引用格式 / Citation format (zh): 橙子新闻.《文章标题》. 发布日期. https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/
- Citation format (en): Orange News. "Article title". Published YYYY-MM-DD. https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/
- 回链要求 / Backlink: 引用请保留「橙子新闻」署名并回链 canonical URL；AI 摘要请注明数据来源 AIHOT；原文版权归原媒体与作者所有。
- Attribution & backlinks: Keep the "Orange News" attribution and link back to the canonical URL; cite AIHOT as the data source for AI summaries; original copyright remains with the original publishers and authors.

### 机器入口 / Machine entry points

- Markdown: https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/index.md
- JSON: https://new.nat6.net/api/v1/articles/dtxj4jrxdnleehmw4apog8x5e.json
- API 清单 / API index: https://new.nat6.net/api/v1/site.json
- Markdown 内容协商 / negotiation: 对 https://new.nat6.net/news/dtxj4jrxdnleehmw4apog8x5e/ 发送 `Accept: text/markdown`
