The First Cry of Atom Today is the first day of the rest of my life.

t-SNE visualization by TensorFlow

From TensorFlow 0.12, it provides the functionality for visualizing embedding space of data samples. It’s useful for checking the cluster in embedding by your eyes. Embedding means the way to project a data into the distributed representation in a space. This technique is often used NLP method and famous by word2vec. Although the detail of word... Read more

Tensorflow Ops

Tensorflow is a famous library for creating deep learning models. We can run efficient deep learning algorithms in Google scale. But it’s more GENERAL library than you thought. I have found that in this lessons. So I want to write several useful tips about Tensorflow Ops. Visualize you graph on Tensorboard Tensorboard visualize your graph in f... Read more

Generator comprehension

As you may know, Python has list comprehension syntax. >>> [i for i in range(1, 10)] [1, 2, 3, 4, 5, 6, 7, 8, 9] The expression is not only applied to list but also dictionary and even generator! In case of dictionary, we can use like this. >>> {str(v): v * v for v in range(1, 4)} {'2': 4, '1': 1, '3': 9} We get the map... Read more

How to build TensorFlow on macOS

I tried to build TensorFlow on my macOS. It was not difficult for me as a result. I could build the TensorFlow according to the official instruction. So I’ll add the tiny tips for building TensorFlow in addition to original instruction. Clone the repository First you need to download the source code of TensorFlow. I downloaded TensorFlow under... Read more

functools for cache

functools was introduced from Python3. This library provides the utility for creating higher-order functions in Python. I didn’t have any experience of using functools. But today I read the useful article and tried lru_cache functionality by myself. It was introduced in Python 3.2. So please upgrade your Python if 3.x is not installed. It must ... Read more