Tuesday, September 25, 2018

Classification --- Deep Learning

We can try a deep learning algorithm by utilizing Keras on Tensorflow or CNTK. However, understanding what is going on inside neural networks is not an easy task. Visualizing how input data is converted into a simple array that describes classification category helps you figure out its structure.

Monday, September 24, 2018

Keras deep learning training input

Keras allows you to use neural networks easily. It is very easy to try a deep learning prototype with Tensorflow or CNTK. The training starts with just one command like below.
Understanding what is "x_train" and "y_train" is a starting point.

x_train

x_train is multi-dimensional array including numerical elements of target contents. For example, when you train 1000 images with 85 * 128 pixels RGB, x_train should be a 4-dimensional array (1000, 85, 128, 3).
x_train datatype is normalized between 0 and 1 with float32 in this case. (RGB is described as 8 bit)

Sunday, September 16, 2018

Python setting up errors

I am using Azure DSVM Standard DS12 v2 (4 vcpus, 28 GB memory) with Linux, which pre-installed Anaconda and related machine learning tools. It is sometimes confusing as Python 2 and 3 are being used through Jupyter notebook in one machine, and I would like to keep memos when setting up errors happen.

Tuesday, September 11, 2018

Image Equalization and Normalization

Preprocessing data before training is a very important and critical part for machine Learning. In computer vision, Image Equalization and Normalization are confusing, but very different. I want to make clear out the difference.

In this article, I am going to normalize and equalize the pic below that Samurai visited Egypt in 1864. This image is really old and blurry. When you normalize and equalize, the image becomes clearer to see.

Sunday, September 9, 2018

Azure Batch AI

Today I tried Azure Batch AI and want to share something useful. The most complex part for me was pricing. The official documentation mentions there is no additional pricing by Azure Batch AI, but it is important when and how it charges us.