5

What is the difference between eager learning and lazy learning?

How does eager learning or lazy learning help me build a neural network system? And how can I use it for any target function?

nbro
  • 39,006
  • 12
  • 98
  • 176
mogoja
  • 73
  • 5

1 Answers1

3

What is eager learning or lazy learning?

Eager learning is when a model does all its computation before needing to make a prediction for unseen data. For example, Neural Networks are eager models.

Lazy learning is when a model doesn't require any training, but all of its computation during inference. An example of such a model is k-NN. Lazy learning is also known as instance-based learning [1, 2, 3].

How does eager and lazy learning help me build a neural network system? And how can I use it for any target function?

To answer your second question, you can't employ lazy learning to train a neural network, because they are inherently eager models.

Djib2011
  • 3,163
  • 3
  • 16
  • 21
  • 1
    Maybe you should cite some book or paper that discusses this terminology because, although what you write makes sense, I am not completely sure this is standard terminology. Maybe it's just been a while since I had to deal with this terminology and that's why I am not completely convinced. – nbro Jul 31 '20 at 12:27
  • @nbro I added some links, hope it's OK. – Djib2011 Jul 31 '20 at 13:46
  • Well, actually, you added some links to other non "reputable" sources, so I edited your post only to leave two links to papers that seem somehow reliable. I think that's enough, unless there's a better source. – nbro Jul 31 '20 at 14:02
  • @nbro I think the terms are sufficiently well-established. I do recall having seen them in my education now that I think of it :) Maybe not as much of a commonly-discussed topic anymore in recent years with many people behaving as if (deep) neural networks are the only types of machine learning models that exist... – Dennis Soemers Jul 31 '20 at 14:06
  • @DennisSoemers Well, they are somehow "established" but I don't think they are widely used. k-NNs is usually described as a "lazy learner", but neural networks and other methods aren't usually described as "eager learning methods", unless you compare them with k-NN and describe when they learn. In this sense, I don't think these terms are widely used. So, I think that some reliable source is important to show that these terms have been used in the literature. – nbro Jul 31 '20 at 14:10
  • 1
    @nbro I think that the default notion of *learning* has shifted towards eager learning. This way NNs aren't described as eager learners because that's the default. In contrast lazy learners are described as such to differentiate with the other more popular models. TBH, I don't agree with the terminology, because no actual *learning* happens in lazy models (no knowledge is extracted from the data), but since they are considered ML models, they need a way of distinguishing themselves... – Djib2011 Jul 31 '20 at 15:03