翻篇收录说明
翻篇网页快照

Machine Learning Glossary: ML Fundamentals | Google for Developers

https://developers.google.com/machine-learning/glossary/fundamentals

最近抓取:2026-12-01 09:41:07(北京时间)

最近内容变化:2026-12-01 09:41:07(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

正文摘录

Home Products Machine Learning Send feedback Machine Learning Glossary: ML Fundamentals Page Summary outlined_flag This content provides definitions for fundamental machine learning terms, including concepts related to models, training, features, and evaluation. It covers a broad range of topics such as supervised/unsupervised learning, neural networks, regularization, loss functions, and specific algorithms like linear/logistic regression. The glossary aims to equip beginners with essential vocabulary for comprehending core machine learning principles. Various practical considerations like data preprocessing techniques (normalization, bucketing), dealing with imbalanced datasets, and preventing overfitting are also addressed. The content serves as a foundational resource for individuals starting their machine learning journey, offering clear explanations and illustrations of key concepts. This page contains ML Fundamentals glossary terms. For all glossary terms, click here. A accuracy #fundamentals #Metric The number of correct classification predictions divided by the total number of predictions. That is: $$\text{Accuracy} = \frac{\text{correct predictions}} {\text{correct predictions + incorrect predictions }}$$ For example, a model that made 40 correct predictions and 10 incorrect predictions would have an accuracy of: $$\text{Accuracy} = \frac{\text{40}} {\text{40 + 10}} = \text{80%}$$ Binary classification provides specific names for the different categories of correct predictions and incorrect predictions. So, the accuracy formula for binary classification is as follows: $$\text{Accuracy} = \frac{\text{TP} + \text{TN}} {\text{TP} + \text{TN} + \text{FP} + \text{FN}}$$ where: TP is the number of true positives (correct predictions). TN is the number of true negatives (correct predictions). FP is the number of false positives (incorrect predictions). FN is the number of false negatives (incorrect predictions). Compare and contrast accuracy with precision and recall. Click the icon for details about accuracy and class-imbalanced datasets. Although a valuable metric for some situations, accuracy is highly misleading for others. Notably, accuracy is usually a poor metric for evaluating classification models that process class-imbalanced datasets. For example, suppose snow falls only 25 days per century in a certain subtropical city. Since days without snow (the negative class) vastly outnumber days with snow (the positive class), the snow dataset for this city is class-imbalanced. Imagine a binary classification model that is supposed to predict either snow or no snow each day but simply predicts "no snow" every day. This model is highly accurate but has no predictive power. The following table summarizes the results for a century of predictions: Category Number TP 0 TN 36499 FP 0 FN 25 The accuracy of this model is therefore: accuracy = (TP + TN) / (TP + TN + FP + FN) accuracy = (0 + 36499) / (0 + 36499 + 0 + 25) = 0.9993 = 99.93% Although 99.93% accuracy seems like a very impressive percentage, the model actually has no predictive power. Precision and recall are usually more useful metrics than accuracy for evaluating models trained on class-imbalanced datasets. See Classification: Accuracy, recall, precision and related metrics in Machine Learning Crash Course for more information. activation function #fundamentals A function that enables neural networks to learn nonlinear (complex) relationships between features and the label. Popular activation functions include: ReLU Sigmoid The plots of activation functions are never single straight lines. For example, the plot of the ReLU activation function consists of two straight lines: A plot of the sigmoid activation function looks as follows: Click the icon to see an example. In a neural network, activation functions manipulate the weighted sum of all the inputs to a neuron. To calculate a weighted sum, the neuron adds up the products of the relevant values and weights. For example, suppose the relevant input to a neuron consists of the following: input value input weight 2 -1.3 -1 0.6 3 0.4 The weighted sum is therefore: weighted sum = (2)(-1.3) + (-1)(0.6) + (3)(0.4) = -2.0 Suppose the designer of this neural network chooses the sigmoid function to be the activation function. In that case, the neuron calculates the sigmoid of -2.0, which is approximately 0.12. Therefore, the neuron passes 0.12 (rather than -2.0) to the next layer in the neural network. The following figure illustrates the relevant part of the process: See Neural networks: Activation functions in Machine Learning Crash Course for more information. artificial intelligence #fundamentals A non-human program or model that can solve sophisticated tasks. For example, a program or model that translates text or a program or model that identifies diseases from radiologic images both exhibit artificial intelligence. Formally, machine learning is a sub-field of artificial intelligence. However, in recent years, some organizations have begun using the terms artificial intelligence and machine learning interchangeably. AUC (Area under the ROC curve) #fundamentals #Metric A number between 0.0 and 1.0 representing a binary classification model's ability to separate positive classes from negative classes. The closer the AUC is to 1.0, the better the model's ability to separate classes from each other. For example, the following illustration shows a classification model that separates positive classes (green ovals) from negative classes (purple rectangles) perfectly. This unrealistically perfect model has an AUC of 1.0: Conversely, the following illustration shows the results for a classification model that generated random results. This model has an AUC of 0.5: Yes, the preceding model has an AUC of 0.5, not 0.0. Most models are somewhere between the two extremes. For instance, the following model separates positives from negatives somewhat, and therefore has an AUC somewhere between 0.5 and 1.0: AUC ignores any value you set for classification threshold. Instead, AUC considers all possible classification thresholds. Click the icon to learn about the relationship between AUC and ROC curves. AUC represents the area under an ROC curve. For example, the ROC curve for a model that perfectly separates positives from negatives looks as follows: AUC is the area of the gray region in the preceding illustration. In this unusual case, the area is simply the length of the gray region (1.0) multiplied by the width of the gray region (1.0). So, the product of 1.0 and 1.0 yields an AUC of exactly 1.0, which is the highest possible AUC score. Conversely, the ROC curve for a classification model that can't separate classes at all is as follows. The area of this gray region is 0.5. A more typical ROC curve looks approximately like the following: It would be painstaking to calculate the area under this curve manually, which is why a program typically calculates most AUC values. Click the icon for a more formal definition of AUC. AUC is the probability that a classification model will be more confident that a randomly chosen positive example is actually positive than that a randomly chosen negative example is positive. See Classification: ROC and AUC in Machine Learning Crash Course for more information. B backpropagation #fundamentals The algorithm that implements gradient descent in neural networks. Training a neural network involves many iterations of the following two-pass cycle: During the forward pass, the system processes a batch of examples to yield prediction(s). The system compares each prediction to each label value. The difference between the prediction and the label value is the loss for that example. The system aggregates the losses for all the examples to compute the total loss for the current batch. During the backward pass (backpropagation), the system reduces loss by adjusting the weights of all the neurons in all the hidden layer(s). Neural networks often contain many neurons across many hidden layers. Each of those neurons contribute to the overall loss in different ways. Backpropagation determines whether to increase or decrease the weights applied to particular neurons. The learning rate is a multiplier that controls the degree to which each backward pass increases or decreases each weight. A large learning rate will increase or decrease each weight more than a small learning rate. In calculus terms, backpropagation implements the chain rule. from calculus. That is, backpropagation calculates the partial derivative of the error with respect to each parameter. Years ago, ML practitioners had to write code to implement backpropagation. Modern ML APIs like Keras now implement backpropagation for you. Phew! See Neural networks in Machine Learning Crash Course for more information. batch #fundamentals The set of examples used in one training iteration. The batch size determines the number of examples in a batch. See epoch for an explanation of how a batch relates to an epoch. See Linear regression: Hyperparameters in Machine Learning Crash Course for more information. batch size #fundamentals The number of examples in a batch. For instance, if the batch size is 100, then the model processes 100 examples per iteration. The following are popular batch size strategies: Stochastic Gradient Descent (SGD), in which the batch size is 1. Full batch, in which the batch size is the number of examples in the entire training set. For instance, if the training set contains a million examples, then the batch size would be a million examples. Full batch is usually an inefficient strategy. mini-batch in which the batch size is usually between 10 and 1000. Mini-batch is usually the most efficient strategy. See the following for more information: Production ML systems: Static versus dynamic inference in Machine Learning Crash Course. Deep Learning Tuning Playbook. bias (ethics/fairness) #responsible #fundamentals 1. Stereotypin