What is Bias In Artificial Neural Network?

Authors
  • Amit Shekhar
    Name
    Amit Shekhar
    Published on
What is Bias In Artificial Neural Network?

I am Amit Shekhar, Co-Founder @ Outcome School, I have taught and mentored many developers, and their efforts landed them high-paying tech jobs, helped many tech companies in solving their unique problems, and created many open-source libraries being used by top companies. I am passionate about sharing knowledge through open-source, blogs, and videos.

Join Outcome School and get high paying tech job: Outcome School

Before we start, I would like to mention that, I have released a video playlist to help you crack the Android Interview: Check out Android Interview Questions and Answers.

In this blog, we will learn what is Bias In Artificial Neural Network.

Understanding bias in simple words

Bias is one of the important terminologies in machine learning. Often we add bias while creating any model in the artificial neural network.

So, let's understand what is this mysterious bias.

In the neural network, we are given the input(x) and for that input, we need to predict the output(y). Here, we create a model(mx + c), which predicts the output.

While training, the model itself finds the appropriate value of the constants mand c.

Let's say we have the model as y = mx instead of the y = mx + c.

bias origin single

Here, the model is having constraint to train itself and find a line which passes only through the origin.

bias origin many

Many times for the given data, it is impossible for the algorithm to fit the model so that it passes through the origin.

Who doesn't need the freedom to perform well?

Let's give some freedom to the algorithm by changing the model as mx + c instead of mx, so that the model can find a line which fits the given data.

bias intercept many

Now, it is having the full freedom to train itself and find a model that fits the best for the given data.

Here, the constant c is the bias.

Bias is a constant which helps the model in a way that it can fit best for the given data.

In other words, Bias is a constant which gives freedom to perform best. This is Bias.

That's it for now.

Thanks

Amit Shekhar
Co-Founder @ Outcome School

You can connect with me on:

Follow Outcome School on:

Read all of our high-quality blogs here.