A.I, Data and Software Engineering


One-hot encoding matrices demonstration

movie lens automation

This post will demonstrate onehot encoding for a rating matrix, such as movie lens dataset. One-hot encoding Previously, we introduced a quick note for one-hot encoding. It is a representation of categorical variables as binary vectors. It is a group of bits among which the legal combinations of values are only those with a single high (1) bit and all the others low (0) Rating matrix If you are...

A really Cool data visualization: 3d globe in 2d space


While generating data in 3d space for manifold learning, I went across a problem of distributing points evenly on a sphere. It is a non-trivial problem but found a good enough solution for such placement. Interestingly, it ends up with a really cool animation effect when I decided to implement it on a mobile app. Figure 1: First animation effect: Rotation The algorithm There are two qualitatively...

Fun coding challenge: print the American flag


Printing is an important part when programming. Printing the US flag to the system console was a small part of “the shape game” for kids, in which the players will select the correct name for a given shape. The flag of the united states Basic Requirements: You are required to print the American flag to the console using just “*” and “=”. The number of stars...

Make use of GG Colab and Jupyter notebook

Petamind A.I

I decided to share this topic while doing research on Deep Learning on Graph, the latest trend in Deep learning. One of the challenges that I had was to the processing power of my laptop while processing hundreds of thousands of nodes. While buying a new laptop with a good GPU is not cheap, around $2k+ US, I decided to dive into the free platform provided by Google (GG). URL: What is great about...

Understand python arguments *args and **kwargs

python icon

Most new Python programmers have a hard time figuring out the *args and **kwargs magic variables. So what are they? *args and **kwargs Firstly, it is not necessary to write *args or **kwargs. Only the * (asterisk) is necessary. You can use *var and **vars instead. Writing *args and **kwargs is just a convention. So now let’s take a look at *args first. Usage of *args *args and **kwargs are...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Pin It on Pinterest