- Hands-On Meta Learning with Python
- Sudharsan Ravichandiran
- 349字
- 2021-07-02 14:29:16
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.
- 數(shù)據(jù)存儲(chǔ)架構(gòu)與技術(shù)
- 數(shù)據(jù)庫技術(shù)與應(yīng)用教程(Access)
- Test-Driven Development with Mockito
- 劍破冰山:Oracle開發(fā)藝術(shù)
- Spark大數(shù)據(jù)分析實(shí)戰(zhàn)
- PySpark大數(shù)據(jù)分析與應(yīng)用
- 數(shù)據(jù)要素五論:信息、權(quán)屬、價(jià)值、安全、交易
- 數(shù)據(jù)革命:大數(shù)據(jù)價(jià)值實(shí)現(xiàn)方法、技術(shù)與案例
- Remote Usability Testing
- 白話大數(shù)據(jù)與機(jī)器學(xué)習(xí)
- 數(shù)據(jù)庫設(shè)計(jì)與應(yīng)用(SQL Server 2014)(第二版)
- SQL應(yīng)用及誤區(qū)分析
- PostgreSQL指南:內(nèi)幕探索
- Hadoop大數(shù)據(jù)開發(fā)案例教程與項(xiàng)目實(shí)戰(zhàn)(在線實(shí)驗(yàn)+在線自測(cè))
- SAS金融數(shù)據(jù)挖掘與建模:系統(tǒng)方法與案例解析