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...
Smooth nature snake game – re-dev with Kotlin (part 1)
When my students proposed a snake game for their projects, I thought it is kind of boring. They are all the same old ideas. Nevertheless, how you want it to be do matter as the game mechanics and animations can be much varied. snake game Why I redev the snake game? Did I try to reinvent the wheel – Not quite! What I include in this post addresses several challenges to simulate a fully...
A.I – A Few Thoughts on its future impacts
machine_learning A.I The concept of artificial intelligence – A.I – has been around for decades. Historically, scientists filled the outlook for the future with predictions of machine intelligence, robotics and automation. Society watched the interpretation of such visions through Hollywood’s science fiction movies where robots which were designed to help people, went rogue and took...
One-hot encoding quick note
Quickly grasp the concept of one-hot encoding by simple data and coding. Categorical VS Numerical data Categorical data are variables that contain label values. For example, A “colour” variable can have values “red“, “green” and “blue“. Here, “red”, “green”, “blue” are labels represented by strings. Numerical data are...