A.I, Data and Software Engineering

CategoryProject

Movielens automation- Process and export

movie lens automation

Movie lens is a popular collection of datasets for recommender systems. This post introduces a python script to process the movie lens datasets, generate a negative sample, and transforms the datasets into SVM light format. The format is also known as libfm format used in many factorization machines. Movie Lens datasets Movie lens icon on Amazon MovieLens is a web-based recommender...

Game frame rate & Character animations (part 1)

animation-girl-walk

A simple game does not always come with simple implementation w.r.t character animations. This articles will introduce a practical design pattern in game development to deal with this. How many animations in this game scene Let have a look at the famous game scene of flappy bird and try to identify how many animations. Fig 1. Flappy bird Visually, you may say there are two animations: the pipes...

Dimension, Dimension, Dimension – Reshape your data

reshape your data

The most basic yet important thing when working with data array is its dimensions. This article will cover several data shapes and reshaping techniques. Why need reshaping data Imagine that you are starving and suddenly given a piece of delicious food. You may try to put it all in your mouth (Fig 1a) and find out it cannot help your hunger. So, you decided to arrange your food so that it not only...

Advanced Keras – Custom loss functions

Petamind A.I

When working on machine learning problems, sometimes you want to construct your own custom loss function(s). This article will introduce abstract Keras backend for that purpose. Keras loss functions From Keras loss documentation, there are several built-in loss functions, e.g. mean_absolute_percentage_error, cosine_proximity, kullback_leibler_divergence etc. When compiling a Keras model, we often...

Word2vec with TensorFlow 2.0 – a simple CBOW implementation

Petamind A.I

In TensorFlow website, there is a good example of word embedding implementation with Keras. Nevertheless, we are curious to see how it looks like when implementing word2vec with PURE TensorFlow 2.0. What is CBOW In the previous article, we introduced Word2vec (w2v) with Gensim library. Word2vec consists of two-layer neural networks that are trained to reconstruct linguistic contexts of words. The...

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