Skip to content

Glossary: Deep Learning Basics

__getitem__

Also written: __len__

The two methods a custom Dataset must define: `__len__` returns the number of examples and `__getitem__` returns example `i`.

Where the book teaches it

Related terms

Dataset