📚 A-level Deep Learning: A Complete Subject Guide | A-level 学科深度学习完全指南
Deep learning is one of the most rapidly growing technologies in artificial intelligence. It borrows the layered structure of the human brain's neural networks and uses hierarchical models to let machines imitate human cognitive processes, which makes it a distinctive branch of machine learning. A-level deep learning brings artificial intelligence, computer science and mathematics together, giving students the chance to understand both the principles and the wide applications of the field.
深度学习是人工智能领域一项蓬勃发展的技术。它借鉴人脑神经网络的结构,以层次化的网络模型让机器模拟人类的认知过程,是一种独特的机器学习方法。A-level 深度学习课程融合了人工智能、计算机科学和数学,为学生深入理解深度学习的原理与广泛应用创造了条件。
1. What Deep Learning Is | 什么是深度学习
The word 'deep' refers to depth in the network: many layers stacked one after another, each transforming the data it receives. A single layer can only draw simple boundaries, but layers working together can represent extremely complex relationships - which is why deep models outperform shallow ones on images, speech and language.
所谓"深",指的是网络层数之深:许多层依次堆叠,每一层都对收到的数据做一次变换。单层网络只能划出简单的边界,而多层协同却能表示极其复杂的关系——这正是深度模型在图像、语音和语言任务上优于浅层模型的原因。
A second key idea is that a deep network is not programmed with hand-written rules; it is trained from examples. You supply data and a target, and the model adjusts itself step by step until its outputs match reality closely enough.
第二个关键认识是:深度网络不是靠人写规则编程出来的,而是从样本中训练出来的。你提供数据和目标,模型会一步步自我调整,直到输出与现实足够接近。
Finally, deep learning is a subset of machine learning, which is itself a subset of artificial intelligence. Understanding this nesting helps students place each technique they meet in the right conceptual box.
最后,深度学习是机器学习的一个子集,而机器学习又是人工智能的一个子集。理解这层嵌套关系,有助于学生把学到的每一项技术放进正确的概念框架中。
2. AI, Computer Science and Mathematics Combined | 人工智能、计算机科学与数学的融合
A-level deep learning sits at the meeting point of three subjects. Artificial intelligence supplies the questions - perception, prediction and decision making. Computer science supplies the tools - code, data structures and computing hardware. Mathematics supplies the language in which learning itself is written.
A-level 深度学习课程融合了人工智能、计算机科学和数学。人工智能提出问题——感知、预测与决策;计算机科学提供工具——代码、数据结构与算力;数学则提供描述"学习"这件事的语言。
You meet vectors and matrices when data is fed into a network, functions and graphs when activation and loss are plotted, probability when predictions are interpreted, and calculus when gradients are computed. None of this is decoration; every piece is used directly.
当数据被送入网络时你会用到向量与矩阵;当绘制激活函数和损失曲线时你会用到函数与图像;当解读预测结果时你会用到概率;当计算梯度时你会用到微积分。这些都不是摆设,每一部分都会被直接使用。
Because the course is synoptic, it strengthens other A-level subjects too: the algebra and calculus of Mathematics and Further Mathematics, the logic and abstraction of Computer Science, and the data reasoning valued in Economics, Geography and the sciences.
由于课程具有综合性,它还会反过来强化你其他 A-level 学科:数学与进阶数学中的代数与微积分、计算机科学中的逻辑与抽象,以及经济、地理和自然科学所看重的数据推理能力。
3. Neural Network Architecture | 神经网络架构
A neural network is built from layers of nodes. An input layer receives the raw features, one or more hidden layers transform them, and an output layer produces the final prediction - a class label, a probability, or a number.
神经网络由一层层节点构成。输入层接收原始特征,一个或多个隐藏层对特征做变换,输出层给出最终预测——可能是类别标签、概率,也可能是一个数值。
| Layer | Role | 层 | 作用 |
| Input | Holds raw features such as pixels or word counts | 输入层 | 承载像素、词频等原始特征 |
| Hidden | Learns increasingly abstract representations | 隐藏层 | 学习越来越抽象的特征表示 |
| Output | Produces the score, class or value required | 输出层 | 给出所需的分数、类别或数值 |
Architecture choices matter: how many layers, how many nodes per layer, and how the layers are connected. A network that is too small cannot learn the pattern; one that is too large memorises the training set and fails on new data.
架构的选择至关重要:多少层、每层多少节点、层与层如何连接。网络太小无法学到规律,网络太大则会"死记"训练集,在新数据上表现不佳。
y = f(Σ wᵢxᵢ + b)
The equation above is the core of a single node: multiply each input by its weight, add the bias, then pass the sum through an activation function f.
上面的公式是单个节点的核心:把每个输入乘以对应权重求和,加上偏置,再把结果送入激活函数 f。
4. Weights and Biases: How Training Happens | 权重与偏置:训练如何发生
Every connection in a network carries a weight, and every node carries a bias. The weight decides how strongly one signal influences the next; the bias shifts the decision threshold, allowing a node to respond even when all its inputs are zero.
网络中每条连接都有一个权重,每个节点都有一个偏置。权重决定某个信号对下一层的影响强度;偏置则平移判断阈值,使节点在所有输入为零时也能被激活。
z = Σ wᵢxᵢ + b
Training is the process of finding good values for those weights and biases. Data flows forward through the network (forward propagation), the error is measured by a loss function, and the error is sent backwards (backpropagation) so that every parameter learns how much it contributed to the mistake.
训练就是为这些权重和偏置找到合适取值的过程。数据向前流过网络(前向传播),损失函数度量误差,误差再向后回传(反向传播),使每个参数知道自己"该负多少责任"。
w ← w − η ∂L/∂w
The size of each adjustment is set by the learning rate η. Too large and training overshoots and oscillates; too small and training crawls or stalls in a poor solution. Choosing a workable learning rate, and a schedule that reduces it over time, is a routine practical skill.
每次调整的幅度由学习率 η 决定。学习率过大,训练会越过最优点来回震荡;过小则收敛缓慢,甚至停滞在较差解上。选择可行的学习率,并设计让它随时间衰减的策略,是常见的实操技能。
Optimisers such as stochastic gradient descent, momentum, RMSProp and Adam are the standard ways of applying that update efficiently on large datasets.
随机梯度下降、动量法、RMSProp 和 Adam 等优化器,是在大规模数据上高效执行该更新的常用方式。
5. Activation Functions and Loss Functions | 激活函数与损失函数
Without activation functions a deep network collapses into a single linear transformation, no matter how many layers it has. Activation functions introduce non-linearity, and it is that non-linearity which lets decision boundaries bend and curve to fit real data.
如果没有激活函数,无论堆叠多少层,深度网络都会退化为一个线性变换。激活函数引入非线性,正是这种非线性让决策边界能够弯折起伏,去贴合真实数据。
σ(z) = 1 / (1 + e⁻ᶻ)
ReLU(x) = max(0, x)
| Function | Typical use | 函数 | 典型用途 |
| Sigmoid | Binary output layer | Sigmoid | 二分类输出层 |
| Tanh | Hidden layers, centred output | Tanh | 隐藏层,输出以零为中心 |
| ReLU | Default for deep hidden layers | ReLU | 深层隐藏层的默认选择 |
| Softmax | Multi-class output as probabilities | Softmax | 多分类输出为概率分布 |
Loss functions define what 'wrong' means, and therefore what the model optimises. Regression tasks often use mean squared error; classification tasks usually use cross-entropy, which punishes confident wrong answers severely.
损失函数定义了什么是"错",也就定义了模型在优化什么。回归任务常用均方误差;分类任务通常使用交叉熵,它对"自信却答错"
更多咨询请联系16621398022(同微信)

或截图后用「扫一扫 → 相册」选择本图