Tag: numpy
-
Python Exercise for Beginners – Implementing One Hot Encoding
In today’s Python exercise we will create a one-hot encoding algorithm to convert categorical data to a numerical format. The reason why we need to do this is that machine learning algorithms only can deal with numbers, not strings. What is One Hot Encoding? One-hot encoding is a way of representing categorical information in binary […]
-
Python Exercises For Beginners – #1 – Sum all integers from Zero to N
Create a Python function that sums all the numbers from 0 to a number N. If a non-positive or a non-integer number is provided, the function should return 0. This Google Colab notebook is part of my “Python Problemns for Beginners” Youtube series: https://youtube.com/playlist?list=PL3OV2Akk7XpC-fsHuJ3RLpnzOXmED7oAI In this video, the first in the series, I show you […]
-
How to create a 3D model of a photo using Python, NumPy and Google Colab — Part I
I recently recorded a four-part video series for my Youtube channel on how I attempted to create a 3D model out of a photo, using Python, Numpy, and Google Colab. For this programming, I relied on the Numpy STL library which can create 3D models using “simple” Numpy arrays. Why I did it I am […]