When you are working with huge arrays in machine learning projects, you often need to index, slice, reshape, and resize.
Indexing is a fundamental term used in mathematics and computer science. As a general term, indexing helps you to specify how to return desired elements of various data structures. The following example shows indexing for a list and a tuple:
In : x = ["USA","France", "Germany","England"] xOut: 'Germany'In : x = ('USA',3,"France",4) xOut: 'France'
In NumPy, the main usage of indexing is controlling and manipulating the elements of arrays. It's a way of creating generic lookup values. Indexing contains three child operations, which are field access, ...