官术网_书友最值得收藏!

Meta learning and few-shot

Learning from fewer data points is called few-shot learning or k-shot learning where k denotes the number of data points in each of the classes in the dataset. Let's say we are performing the image classification of dogs and cats. If we have exactly one dog and one cat image then it is called one-shot learning, that is, we are learning from just one data point per class. If we have, say 10 images of a dog and 10 images of a cat, then that is called 10-shot learning. So k in k-shot learning implies a number of data points we have per class. There is also zero-shot learning where we don't have any data points per class. Wait. What? How can we learn when there are no data points at all? In this case, we will not have data points, but we will have meta information about each of the classes and we will learn from the meta information. Since we have two classes in our dataset, that is, dog and cat, we can call it two-way k-shot learning; so n-way means the number of classes we have in our dataset.

In order to make our model learn from a few data points, we will train them in the same way. So, when we have a dataset, D, we sample a few data points from each of the classes present in our data set and we call it as support set. Similarly, we sample some different data points from each of the classes and call it as query set. So we train our model with a support set and test with a query set. We train our model in an episodic fashion—that is, in each episode, we sample a few data points from our dataset, D, prepare our support set and query set, and train on the support set and test on the query set. So, over series of episodes, our model will learn how to learn from a smaller dataset. We will explore this in more detail in the upcoming chapters.

主站蜘蛛池模板: 庆城县| 南雄市| 承德县| 嘉荫县| 长宁县| 曲靖市| 大港区| 贵定县| 抚州市| 金阳县| 永城市| 兴隆县| 西安市| 惠州市| 邵阳市| 遂宁市| 牡丹江市| 尤溪县| 吴堡县| 嫩江县| 江津市| 科技| 绵竹市| 新宾| 武鸣县| 兴宁市| 上栗县| 渭南市| 静海县| 台南市| 武川县| 柯坪县| 安新县| 陕西省| 高台县| 黄平县| 陆良县| 富锦市| 旬邑县| 慈溪市| 额尔古纳市|