cft

Machine Learning in C++ #Intro

Machine Learning in C++ #Intro


user

Yunusemre Ozkose

7 days ago | 1 min read

Introduction

Machine learning is widely coded in Python. It would be okay for training, but we have to make it faster for our productions and integrate deployed applications. For this purpose, I decided to provide tutorials on that. I hope these tutorials help engineers and researchers. All codes are available in a Github repo. If you are working on PyTorch, you can also check this series for PyTorch in c++.

Installation

We will use the mlpack library which is a machine-learning library in c++. To install the mlpack, you can follow the below steps.

Install armadillo

sudo apt-get install liblapack-devsudo apt-get install libblas-devsudo apt-get install libboost-devsudo apt-get install libarmadillo-dev

Install Cereal

sudo apt-get install libcereal-dev

Install mlpack

git clone https://github.com/mlpack/mlpack.gitcd mlpackmkdir build && cd buildcmake ..sudo make install

After these steps, we can include mlpack.hpp in out c++ code.

Conclude

In this blog, I gave a brief introduction to machine learning in c++ series and gave steps of installation mlpack. We will learn how to implement/use machine learning algorithms in c++ in the following blogs of this series. All codes are available in a Github repo.

Upvote


user
Created by

Yunusemre Ozkose

Research and Development Engineer

MSc student at Hacettepe University and R&D engineer at Sestek emreozkose.github.io


people
Post

Upvote

Downvote

Comment

Bookmark

Share


Related Articles