Showing posts with label Golang. Show all posts
Showing posts with label Golang. Show all posts

Wednesday, January 3, 2018

Get started with golearn: Machine Learning with Go

Overview

On this article, I’ll try golearn package on Golang.
These days, typical environment sets for data science and machine learning are Python, R, R-studio and Jupyter, although it depends on the purposes and phases. When I personally do something, I always use Python and Jupyter. But of course other programming languages have machine learning libraries and those are sometimes used.
Here, I’ll try golearn package, which is the package for machine learning.
This is the official page.
As a first step, through kNN algorithms, I’ll follow the basic step of that.

Saturday, September 30, 2017

Stats package on Golang

When we deal with data on the meaning of data analysis, data science, and machine learning, Go’s statistics package does a good job.

On the area of data science and machine learning, people usually use Python and R. On the internet, we can see just a few amount of information about data science with Go.

So I’ll leave concise memo about that.
Here I’ll introduce how to use basic statistics package.


Friday, August 25, 2017

Data visualization by Golang

Overview

Usually when I plot data’s behavior to check it and to decide the approach, I use Python, matplotlib. Actually these days this is one of the best answer from the viewpoint of data science. But for these 3 or 4 weeks, I have been using Go and as a data scientist, I feel obligation to know how to plot data even at a basic level.
This is basic plot note about Golang.

Sunday, August 20, 2017

Speed up naive kNN by the concept of kmeans

Overview

About prediction, kNN(k nearest neighbors) is very slow algorithm, because it calculates all the distances between predict target and training data point on the predict phase.
By adding some process, I tried to make the naive kNN speed up and checked how much the time and accuracy changes.

Sunday, August 13, 2017

kNN by Golang from scratch

Overview

I wrote kNN(k nearest neighbors), one of the machine learning algorithms, by Go.
Go has some machine learning packages but it is hard to find the information of how to write machine learning algorithms by Go. So I stepwise introduce how to. This time kNN.
This article is to understand how the algorithm. So I don’t use some elements to improve the accuracy if it disturbs the understanding essential points.

Saturday, August 5, 2017

Perceptron by Golang from scratch

Overview

I tried perceptron, almost “Hello world” in machine learning, by Golang.
Go has matrix calculation library like numpy on Python. But this time I just used default types.

Usually on machine leaning, R and Python are frequently used and almost all from-scratch code of machine learning is shown by those or by C++. So I just tried this “Hello world”.



Monday, July 31, 2017

How to use gonum/matrix (Golang package)

When I started to learn about Golang, the first obstacle to use that for machine learning was matrix data manipulation. On Python, you can use numpy, pandas. On Go, on some machine learning package uses gonum/matrix. So I just checked how to use.

Overview

I make a summary about gonum/matrix’s basic usage.