AI Terms Dictionary

A comprehensive multilingual AI terminology dictionary

Definition

Lazy learners, such as k-Nearest Neighbors (k-NN), memorize the entire training dataset and perform computations only when making predictions. This contrasts with eager learning, which builds a generalized model upfront. While lazy learning can adapt quickly to new data without retraining, it suffers from high computational costs during inference and large memory requirements due to storing all training examples.

Summary

A learning approach that delays generalization until classification time, storing training instances rather than building an explicit model.

Key Concepts

Use Cases

Code Example

1
2
from sklearn.neighbors import KNeighborsClassifier
clf = KNeighborsClassifier(n_neighbors=5)