Beginner’s Guide to Machine Learning

D
5 min readJun 6, 2021

Ah, the famous 2 words in this day and age: “Machine Learning”. The use of Machine Learning in itself isn’t a new concept. It has been around since the 1940s. Yep you heard that right! So what exactly is Machine Learning? Well let’s take a look.

Machine Learning is a broad field of Computer Science that looks into the ways in which Computers can mimic intelligence by predicting an output based on a set of inputs given. The simplest form of Machine Learning is linear regression. Remember the typical y=mx+c model that was taught in Secondary School? Yep, that’s machine learning. Imagine I have a set of x and y values. I can then choose a set of m and c values that minimise the errors between the various x and y values. For simplicity assume the line y = mx + c has to pass through the origin. Therefore, c is equal to 0. As such the subsequent task of choosing m is called training the model.

Let’s use an example. Assume I have 2 sets of data, one of them has an x value of 1 and a y value of 2 while the other has an x value of 3 and a y value of 6. In this case, m would be 2. So if I were to provide another x of value 5, I can easily deduce that my y would be 10.

So let’s get right into code. First make sure you have the Pycharm IDE installed (any IDE works, but I have personally found Pycharm especially easy to use for beginners).

Example of Tensorflow library being successfully imported

--

--

D
D

Written by D

An aspiring Robotics Researcher. I am currently in my 4th year of undergraduate studies. I am working on optimising the ROS navigation packages. Follow 4 more!

No responses yet