Lesson 12 – Slicing NumPy Arrays for Machine Learning

preview_player
Показать описание
In this lesson I will show you how to slice an array in NumPy. Slicing in python means taking elements from one given index to another given index. We pass slice instead of index like this: [start:end].
We can also define the step, like this: [start:end:step]. If we don't pass start its considered 0, If we don't pass end its considered length of array in that dimension, If we don't pass step its considered 1
Рекомендации по теме