Learn to insert "tiles" of numbers into NumPy arrays in this video tutorial by Charles Kelly. These are explained in the context of computer science and data science to technologists and students in preparation for machine learning, applied statistics, ne
- [Instructor] The file, Tiling Arrays in your exercise…file folder is pre-populated with an import statement,…and a sample array.…In this video, we will learn to create an array…that is built from tiles,…that is, it's built from…rectangular repetitions of another array.…Before you begin to use this notebook,…click on the cell menu, and select run all.…The documentation for tile is located at this URL.…Notice, numpy dot tile takes two parameters.…
The first is an array like structure,…and B, the second parameter, is reps,…the number of repetitions for A in the tiling construct.…This information is replicated from the documentation page.…Let's begin with an example using numpy tile…on my start array, and replicate that three times.…The result is zero, one, two, three,…four, five, six, seven, eight,…nine, 10, 11,…a second time zero through 11,…and a third time, zero through 11.…
We can chain functions together, in this case,…using the reshape function to create…a three by 12 array from the tiled information.…Let's create another sample array,…
- Using Jupyter Notebook
- Creating NumPy arrays from Python structures
- Slicing arrays
- Using Boolean masking and broadcasting techniques
- Plotting in Jupyter notebooks
- Joining and splitting arrays
- Rearranging array elements
- Creating universal functions
- Finding patterns
- Building magic squares and magic cubes with NumPy and Python
Skill Level Intermediate
2. Create NumPy Arrays
3. Index, Slice, and Iterate
4. Plots: Matplotlib and Pyplot
5. Manipulate Arrays
6. Short Examples
7. Extended Examples
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.