Monday, September 25, 2017

Simple tutorial to write deep neural network by TensorFlow


On this article, I’ll show simple deep neural network(DNN) model for regression by TensorFlow.

TensorFlow is open source library from Google. From the official web site,
TensorFlow™ is an open source software library for numerical computation using data flow graphs.

From wikipedia,
TensorFlow is an open-source software library for machine learning across a range of tasks. It is a system for building and training neural networks to detect and decipher patterns and correlations, analogous to (but not the same as) human learning and reasoning.[3] It is used for both research and production at Google,‍[3]:min 0:15/2:17 [4]:p.2 [3]:0:26/2:17 often replacing its closed-source predecessor, DistBelief.

It lets us make neural network relatively easily. But different from keras, this needs proper knowledge of the things you want to make.
This article is almost simple tutorial to make deep neural network model for regression.

You can know the followings on this article.
  • What is deep neural network?
  • How do we write deep neural network model by TensorFlow

Sunday, September 24, 2017

Simple regression model by TensorFlow


Neural network is composed of input, hidden and output layers. And the number of hidden layers is optional. So the simplest network architecture has just one hidden layer.

On this article, I’ll make the simplest neural network for regression by TensorFlow.

From the official web site,
TensorFlow™ is an open source software library for numerical computation using data flow graphs.

This makes it easier to make shallow and deep neural network and other machine leaning algorithms. Through the simple trial, we can learn about TensorFlow and the system of neural network.

About the Tensorflow itself, please check the article below.

Friday, September 22, 2017

VGG16 Fine-tuning model


On the article, VGG19 Fine-tuning model, I checked VGG19’s architecture and made fine-tuning model. On the same way, I’ll show the architecture VGG16 and make model here.

There are some image classification models we can use for fine-tuning.
Those model's weights are already trained and by small steps, you can make models for your own data.

About the fine-tuning itself, please check the followings.

Wednesday, September 20, 2017

Making linear regression model by R


When we make model by data science, machine learning method, it’s not simple process such as “just throw data into SVM”. Getting, checking, processing, modeling, evaluation. There are many steps you need to care about.

On this article, by making regression model on R, I’ll show the example of part of the process.

Tuesday, September 19, 2017

Simple guide to kNN

Personally, I like kNN algorithm much. Because kNN, k nearest neighbors, uses simple distance method to classify data, you can use that in the combination with other algorithms. It can also be one of the first step to study machine learning algorithms because of the simplicity.

On the following articles, I wrote about kNN. But although I myself don’t know the reason, I’ve never touched the simplest usage of kNN, meaning how to use kNN of sklearn’s library.

Friday, September 15, 2017

How to write kNN by TensorFlow


How do we write machine learning algorithms with TensorFlow?
I usually use TensorFlow only when I write neural networks. But actually TensorFlow is not only for that. It also can be used to write other machine leaning algorithms.
On this article, I tried to roughly write kNN algorithm by TensorFlow.

Saturday, September 9, 2017

The reason to try kaggle and how you do


I sometimes hear as the answer to the question, “What should I do as study of data science?”, the importance of kaggle.

Personally, I agree with the idea that he/she tries kaggle as early as possible.
Why is kaggle awesome to improve the knowledge of data science/mach learning? I summarize the points of kaggle’s advantages from the viewpoint of studying.

enter image description here

Thursday, September 7, 2017

Observation of Beta distribution


PRML(Pattern Recognition and Machine leaning) is one of the best text books about machine learning. I review it from time to time.
As one of the reviews, I write down some notes of part of it.
This article is about Beta distribution, which is shown on chapter 2 on PRML.

Wednesday, September 6, 2017

Fashion-MNIST exploring


Fashion-MNIST is mnist-like image data set. Each data is 28x28 grayscale image associated with fashion. Literally, this is fashion version of mnist.

I'm thinking to use this data set on small experiment from now on. So, for the future, I checked what kind of data fashion-MNIST is.

Sunday, September 3, 2017

VGG19 Fine-tuning model


On the article, How to make Fine tuning model, I made fine-tuning models by some pre-trained models. At that time, I didn't write about the pre-trained model's architecture and the train target area based on it.

This time, I foucused on the VGG19 as pre-trained model. And in a nutshell, I tried to make fine-tuning model in better manner, checking some important points.