diff --git a/appendices/ap01-programming.tex b/appendices/ap01-programming.tex index fe2d08e..6348739 100644 --- a/appendices/ap01-programming.tex +++ b/appendices/ap01-programming.tex @@ -696,7 +696,7 @@ Agent开发 & LangGraph & pip install langgraph & 状态机式Agent开发 \\ \subsubsection{模型资源} \paragraph{\texorpdfstring{Hugging -Face:\href{https://huggingface.co/}{huggingface.co}}{Hugging Face:huggingface.co}}\label{hugging-facehuggingface.co} +Face:\href{https://huggingface.co/}{huggingface.co}}{Hugging Face:huggingface.co}} 功能:模型仓库、数据集、Spaces在线演示 @@ -788,7 +788,7 @@ train\_test\_split \textbf{from} sklearn.metrics \textbf{import} accuracy\_score, classification\_report -\subsubsection{}\label{section} + \emph{\# 1. 加载数据} @@ -915,7 +915,7 @@ print(f"dy/dx = \{x.grad\}") \emph{\# 应为 2x + 3 = 7(x=2时)} \textbf{from} torchvision \textbf{import} datasets, transforms -\paragraph{}\label{section-4} + \emph{\# 1. 数据准备} diff --git a/chapters/ch02-framework.tex b/chapters/ch02-framework.tex index 28b6af5..6c00092 100644 --- a/chapters/ch02-framework.tex +++ b/chapters/ch02-framework.tex @@ -974,26 +974,19 @@ print(f"真实参数: W = [2.0, 3.0], b = [1.0]") 因此,AI领域的基本要素便是在不同类型环境(Environment)中行动的各类智能体(Agent),执行从科学发现到实践应用等不同场景中的多种任务(Task)。总体上,环境可分为物理环境与虚拟或数字环境两大类,智能体可分为人类(含具有不同程度智能的动物)、AI与具身智能三大类(表2.1)。 -\begin{longtable}[]{@{} - >{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.1442}} - >{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.4327}} - >{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.4135}}@{}} -\caption{表 2.1 环境-智能体的类型组合}\tabularnewline -\toprule\noalign{} -\endfirsthead -\endhead -\bottomrule\noalign{} -\endlastfoot -\textbf{环境} - -\textbf{智能体} & \textbf{物理环境} & \textbf{数字环境} \\ -\textbf{人类} & ~ 具有物理身体,能直接感知和互动 & ~ -通过设备(如电脑、手机)访问,依赖界面 \\ -\textbf{AI} & ~ 通过机器人或嵌入式系统体现,但本质是软件 & ~ -主要存在和运行,如算法、聊天机器人 \\ -\textbf{具身智能} & ~ 设计用于物理世界,有传感器和执行器 & ~ -可能具有数字组件,但焦点是物理体现 \\ -\end{longtable} +\begin{table}[htbp] +\centering +\caption{环境-智能体的类型组合} +\begin{tabular}{@{} l p{5cm} p{5cm} @{}} +\toprule +\diagbox{\textbf{智能体}}{\textbf{环境}} & \textbf{物理环境} & \textbf{数字环境} \\ +\midrule +\textbf{人类} & 具有物理身体,能直接感知和互动 & 通过设备(如电脑、手机)访问,依赖界面 \\[3pt] +\textbf{AI} & 通过机器人或嵌入式系统体现,但本质是软件 & 主要存在和运行,如算法、聊天机器人 \\[3pt] +\textbf{具身智能} & 设计用于物理世界,有传感器和执行器 & 可能具有数字组件,但焦点是物理体现 \\ +\bottomrule +\end{tabular} +\end{table} 其中,人类与物理环境的互动长久以来是地理学科的研究主题,即“人地关系”或“人地耦合系统”研究,涉及环境感知、景观设计、可持续性等多个议题。当前的“智能体---环境”关系研究可视为“人地关系”研究的自然延伸,可从中汲取丰富启发,有待后续深入探讨。人类与数字环境的互动则关联网络社会、人机交互等主题,在AI蓬勃发展的时代背景下催生了更多、更深刻的研究命题。AI与具身智能分别对应数字环境和物理环境,构成了人工智能的两种主要存在方式。 @@ -1008,7 +1001,7 @@ print(f"真实参数: W = [2.0, 3.0], b = [1.0]") \begin{figure} \centering \includegraphics[width=4.15529in,height=3.58481in,alt={图 2.1 智能体-环境互动框架}]{figures/ch02/image1.png} -\caption{图 2.1 智能体-环境互动框架} +\caption{智能体-环境互动框架} \end{figure} \subsection{"环境-智能体"框架与设计任务} @@ -1026,7 +1019,7 @@ Agent在环境中的行为充满复杂性,这些复杂性可以分解为不同 \begin{longtable}[]{@{} >{\raggedright\arraybackslash}p{(\linewidth - 2\tabcolsep) * \real{0.2083}} >{\raggedright\arraybackslash}p{(\linewidth - 2\tabcolsep) * \real{0.5694}}@{}} -\caption{表 2.2 智能系统设计空间的复杂性维度}\tabularnewline +\caption{智能系统设计空间的复杂性维度}\tabularnewline \toprule\noalign{} \endfirsthead \endhead diff --git a/preamble.tex b/preamble.tex index aab9d96..f295074 100644 --- a/preamble.tex +++ b/preamble.tex @@ -26,6 +26,7 @@ \usepackage{tabularx} \usepackage{multirow} \usepackage{longtable} +\usepackage{diagbox} % ========== 图形 ========== \usepackage{graphicx}