Wednesday, September 16, 2026
No Result
View All Result
Future News 24
Advertisement
  • Home
  • AI Research
  • Platforms
  • Ethics
  • Developer AI
  • Industry
  • Data Science
  • Emerging Tech
  • Quantum
  • BioTech
  • Decentralized
  • Home
  • AI Research
  • Platforms
  • Ethics
  • Developer AI
  • Industry
  • Data Science
  • Emerging Tech
  • Quantum
  • BioTech
  • Decentralized
No Result
View All Result
Future News 24
No Result
View All Result
Home Data Science & MLOps

The Sigmoid Perform: From ‘e’ to Neural Networks

Future News 24 by Future News 24
August 28, 2026
in Data Science & MLOps
0 0
0
The Sigmoid Perform: From ‘e’ to Neural Networks
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


Welcome again!

We lately mentioned backpropagation, and I hope you now have an concept of what backpropagation is and the way it really works.

Let’s proceed the deep studying journey.

Despite the fact that we apply the backpropagation algorithm to a neural community, we nonetheless have some issues, and vanishing gradients is considered one of them.

Whereas I used to be studying about vanishing gradients, I got here throughout the sigmoid perform.

Everyone knows that it’s utilized in logistic regression, the place we apply the sigmoid perform to a worth to acquire an output between 0 and 1.

Now, right here in neural networks, it may be used as an activation perform.

What I learn about sigmoid is the equation we’ve got and its utilization in logistic regression and neural networks.

I used to be inquisitive about how we get this equation and the story behind it.

On this weblog, let’s examine how we get to the sigmoid equation.

By the way in which, if you have not learn Half 3 of the backpropagation sequence, you’ll be able to learn it right here.

Ā·Ā·Ā·

How Do We Really Use Sigmoid?

We already know the equation of the sigmoid perform.

σ(x)=11+eāˆ’xsigma(x) = frac{1}{1 + e^{-x}}σ(x)=1+eāˆ’x1​

Earlier than we proceed, let’s examine how we use it in logistic regression.

For instance, we wish to predict whether or not a scholar will cross or fail primarily based on the variety of hours they studied.

We’re utilizing the logistic regression mannequin right here.

First, it calculates a rating

For instance the rating for a scholar is:

This rating will not be a likelihood.

It’s simply the linear mixture of parameters.

Now we cross it via the sigmoid perform:

σ(z)=11+eāˆ’zsigma(z) = frac{1}{1 + e^{-z}}σ(z)=1+eāˆ’z1​

we get,

σ(2)=11+eāˆ’2ā‰ˆ0.88sigma(2) = frac{1}{1 + e^{-2}} approx 0.88σ(2)=1+eāˆ’21ā€‹ā‰ˆ0.88

The sigmoid perform all the time produces an output between 0 and 1.

Right here the output is roughly 0.88 or 88%.

In logistic regression, this may be interpreted as an 88% likelihood of the coed passing the examination.

We will then use a threshold, comparable to 0.5, to make the ultimate classification.

In brief, the movement will be like

Rating→Sigmoid→Likelihood→Classtext{Rating} rightarrow textual content{Sigmoid} rightarrow textual content{Likelihood} rightarrow textual content{Class}Rating→Sigmoid→Likelihood→Class

That is how we generally use the sigmoid perform in logistic regression.

However What Is This ā€œeā€?

Now, let’s as soon as once more have a look at the sigmoid equation.

σ(z)=11+eāˆ’zsigma(z) = frac{1}{1 + e^{-z}}σ(z)=1+eāˆ’z1​

The very first thing we discover is the e.

We all know that it’s a mathematical fixed and its worth is

eā‰ˆ2.71828e approx 2.71828eā‰ˆ2.71828

However what precisely is ‘e’?

Why is that this quantity current within the sigmoid equation?

Let’s take a step again and perceive the place this quantity comes from.

One factor is that right here we’re not making an attempt to find ‘e’, however the aim is to know the importance of ‘e’ and see the place it naturally seems.

Now let’s go to the financial institution and see what we will observe.

Let’s Begin with a Easy Financial institution Instance

Think about we deposited Rs.100 right into a checking account.

For instance the financial institution is giving us a 100% annual rate of interest.

If the financial institution provides all the yr’s curiosity on the finish of the yr, we earn Rs.100 in curiosity.

So after one yr, we’ve got

100+100=200100 + 100 = 200100+100=200

We will additionally write it as

100(1+1)=200100(1 + 1) = 200100(1+1)=200

Rs.100 turned Rs.200 after one yr.

However now let’s change one factor.

What if the financial institution would not wait till the tip of the yr so as to add the curiosity?

What if it provides the curiosity twice a yr?

The annual rate of interest continues to be 100%.

However now the yr is split into two intervals.

So for every six-month interval we get half of the annual rate of interest:

12=0.5=50percentfrac{1}{2} = 0.5 = 50%21​=0.5=50%

Through the first six months, we get

100(1+12)=150100left(1 + frac{1}{2}proper) = 150100(1+21​)=150

After six months, we’ve got Rs.150.

Through the subsequent six months, the curiosity is calculated on this new quantity

150(1+12)=225150left(1 + frac{1}{2}proper) = 225150(1+21​)=225

Then we’ve got

100(1+12)2=225100left(1 + frac{1}{2}proper)^2 = 225100(1+21​)2=225

Why did we get Rs.225 as a substitute of Rs.200?

As a result of the curiosity earned in the course of the first six months additionally earned curiosity in the course of the second six months.

In easy phrases we will say

‘curiosity earns curiosity’

That is the essential concept behind compound curiosity.

What Occurs When We Compound Extra Steadily?

Now let’s make the compounding extra frequent.

If we compound 4 instances a yr:

100(1+14)4ā‰ˆ244.14100left(1 + frac{1}{4}proper)^4
approx 244.14
100(1+41​)4ā‰ˆ244.14

If we compound 12 instances a yr:

100(1+112)12ā‰ˆ261.30100left(1 + frac{1}{12}proper)^{12}
approx 261.30
100(1+121​)12ā‰ˆ261.30

If we compound day-after-day:

100(1+1365)365ā‰ˆ271.46100left(1 + frac{1}{365}proper)^{365}
approx 271.46
100(1+3651​)365ā‰ˆ271.46

Observe the sample.

As we enhance the variety of compounding intervals, the ultimate quantity retains rising.

The reason being that development is being utilized repeatedly to an quantity that has already elevated.

The place Does e Come From?

The Rs.100 will not be the vital half right here.

Let’s take away it and have a look at the expansion issue:

(1+1n)nleft(1 + frac{1}{n}proper)^n(1+n1​)n

Right here, ‘n’ represents the variety of instances we compound in the course of the yr.

For instance:

(1+11)1=2left(1 + frac{1}{1}proper)^1 = 2(1+11​)1=2
(1+12)2=2.25left(1 + frac{1}{2}proper)^2 = 2.25(1+21​)2=2.25
(1+14)4ā‰ˆ2.4414left(1 + frac{1}{4}proper)^4 approx 2.4414(1+41​)4ā‰ˆ2.4414
(1+112)12ā‰ˆ2.613left(1 + frac{1}{12}proper)^{12} approx 2.613(1+121​)12ā‰ˆ2.613
(1+1365)365ā‰ˆ2.7146left(1 + frac{1}{365}proper)^{365} approx 2.7146(1+3651​)365ā‰ˆ2.7146

As we make the compounding increasingly more frequent, the worth will get nearer and nearer to

2.71828…2.71828ldots2.71828…

This quantity is named ‘e’

eā‰ˆ2.71828e approx 2.71828eā‰ˆ2.71828

Mathematically, we will specific this concept utilizing a restrict

e=lim⁔nā†’āˆž(1+1n)ne = lim_{n rightarrow infty}
left(1 + frac{1}{n}proper)^n
e=nā†’āˆžlim​(1+n1​)n

The notation could look advanced, however the concept is easy.

Right here, we’re asking:

“What worth does this expression method as ‘n’ turns into bigger and bigger?”

As ‘n’ will increase:

(1+1n)nleft(1 + frac{1}{n}proper)^n(1+n1​)n

will get nearer and nearer to:

2.71828…2.71828ldots2.71828…

That limiting worth is ‘e’.

So, What Does the Financial institution Need to Do with Sigmoid?

However why are we speaking about this and what does this checking account should do with sigmoid.

This instance is not to clarify compound curiosity, however it provides us an instinct for the place ‘e’ naturally seems.

The vital concept right here is repeated development.

When development is repeatedly utilized to an quantity that has already grown, we get a compounding course of.

And when that course of occurs repeatedly extra incessantly, the quantity ‘e’ naturally seems.

So as a substitute of merely memorizing that

eā‰ˆ2.71828e approx 2.71828eā‰ˆ2.71828

we now have some instinct behind it.

The Particular Property of e

From the financial institution instance, we noticed that ‘e’ naturally seems after we have a look at repeated development and steady compounding.

However ‘e’ is greater than only a quantity that seems in compound curiosity.

It has a really particular property after we have a look at it via calculus.

Let’s think about the exponential perform

If we differentiate this perform, we get

dydx=exfrac{dy}{dx}=e^xdxdy​=ex

This formulation we already know.

However what does the by-product inform us?

We already know that it tells us the speed of change of a perform.

For instance, if we’ve got

its by-product is

dydx=2xfrac{dy}{dx}=2xdxdy​=2x

Which means that the speed at which x2 modifications is determined by the worth of x.

At x=1:

dydx=2(1)=2frac{dy}{dx}=2(1)=2dxdy​=2(1)=2

At x=3:

dydx=2(3)=6frac{dy}{dx}=2(3)=6dxdy​=2(3)=6

So, for x2, the perform and its charge of change are completely different.

Now let us take a look at ex.

For

we’ve got

dydx=exfrac{dy}{dx}=e^xdxdy​=ex

Which means that the speed of change of ex is the same as its present worth.

Let us take a look at some values.

When x=0

and

dydx=1frac{dy}{dx}=1dxdy​=1

When x=1

e1ā‰ˆ2.718e^1approx2.718e1ā‰ˆ2.718

and

dydxā‰ˆ2.718frac{dy}{dx}approx2.718dxdyā€‹ā‰ˆ2.718

When x=2

e2ā‰ˆ7.389e^2approx7.389e2ā‰ˆ7.389

and

dydxā‰ˆ7.389frac{dy}{dx}approx7.389dxdyā€‹ā‰ˆ7.389

So, right here we will say that

Charge of change = Present worth

This is likely one of the most vital properties of the exponential perform with base e.

Why Is the Spinoff of ex Equal to ex?

We now have an concept of an vital property of ‘e’ in calculus.

ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

We simply mentioned what it’s however let’s examine why does this occur?

For those who already know why

ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

then use this part for fast revision as we join it again to the sigmoid perform.

Beginning with a Common Exponential

First let’s think about a basic exponential perform.

Right here, z is the bottom and x is the exponent.

2x,3x,5x,10×2^x,qquad 3^x,qquad 5^x,qquad 10^x2x,3x,5x,10x

are all examples of this way.

Now let’s examine what occurs after we differentiate zx

We’ve got,

dydx=lim⁔h→0zx+hāˆ’zxhfrac{dy}{dx}
=
lim_{hto0}
frac{z^{x+h}-z^x}{h}
dxdy​=h→0lim​hzx+hāˆ’zx​

Utilizing the exponent rule we get

zx+h=zxzhz^{x+h}=z^xz^hzx+h=zxzh

Due to this fact

dydx=lim⁔h→0zxzhāˆ’zxhfrac{dy}{dx}
=
lim_{hto0}
frac{z^xz^h-z^x}{h}
dxdy​=h→0lim​hzxzhāˆ’zx​

Now discover that zx seems in each phrases within the numerator.

We will issue it out

dydx=lim⁔h→0zxzhāˆ’1hfrac{dy}{dx}
=
lim_{hto0}
z^xfrac{z^h-1}{h}
dxdy​=h→0lim​zxhzhāˆ’1​

Right here zx doesn’t rely on h, so we will take it exterior the restrict

dydx=zxlim⁔h→0zhāˆ’1hfrac{dy}{dx}
=
z^x
lim_{hto0}
frac{z^h-1}{h}
dxdy​=zxh→0lim​hzhāˆ’1​

And that is the place issues get attention-grabbing.

Our result’s

dydx=zxlim⁔h→0zhāˆ’1hfrac{dy}{dx}
=
z^x
lim_{hto0}
frac{z^h-1}{h}
dxdy​=zxh→0lim​hzhāˆ’1​

Take a look at the 2 components individually.

The primary half is

That’s our unique exponential perform.

The second half is

lim⁔h→0zhāˆ’1hlim_{hto0}
frac{z^h-1}{h}
h→0lim​hzhāˆ’1​

We will see that there is no such thing as a ‘x’ on this expression.

It is determined by the bottom ‘z’, however not on ‘x’.

This implies, for any worth of ‘z’, this complete restrict is only a fixed.

Let’s name this fixed ‘C’.

C=lim⁔h→0zhāˆ’1hC=
lim_{hto0}
frac{z^h-1}{h}
C=h→0lim​hzhāˆ’1​

Due to this fact we will write it as,

ddxzx=Czxfrac{d}{dx}z^x=Cz^xdxd​zx=Czx

This tells us one thing vital.

Once we differentiate an exponential perform, we get the unique exponential perform, multiplied by a continuing.

In different manner,

SpinoffĀ ofĀ zx=fixedƗzxtext{Spinoff of }z^x
=
textual content{fixed}instances z^x
SpinoffĀ ofĀ zx=fixedƗzx

The Fixed Is determined by the Base

Now let’s take an instance of exponential perform:

From our outcome, we’ve got

ddx3x=C3xfrac{d}{dx}3^x=C3^xdxd​3x=C3x

For z=3, the fixed is

C=lim⁔h→03hāˆ’1hC=
lim_{hto0}
frac{3^h-1}{h}
C=h→0lim​h3hāˆ’1​

Now we have to discover the worth of this restrict.

Let’s perceive this in intuitive manner.

For the bottom 3, the worth of the fixed is roughly

Cā‰ˆ1.0986Capprox1.0986Cā‰ˆ1.0986

Due to this fact,

ddx3xā‰ˆ1.0986(3x)frac{d}{dx}3^x
approx
1.0986(3^x)
dxd​3xā‰ˆ1.0986(3x)

Let’s have a look at what this tells us through the use of at completely different ‘x’ values.

When

we’ve got

the speed of change right here is roughly

1.0986(1)=1.09861.0986(1)=1.09861.0986(1)=1.0986

When

we get

The speed of change is

1.0986(3)ā‰ˆ3.29581.0986(3)approx3.29581.0986(3)ā‰ˆ3.2958

And when

we’ve got

The speed of change is roughly

1.0986(9)ā‰ˆ9.88741.0986(9)approx9.88741.0986(9)ā‰ˆ9.8874

We will see that the by-product will not be precisely equal to 3x.

As an alternative, we acquired

ddx3xā‰ˆ1.0986(3x)frac{d}{dx}3^x
approx
1.0986(3^x)
dxd​3xā‰ˆ1.0986(3x)

The perform and its charge of change have the identical exponential form, however the charge of change is scaled by a continuing.

Discovering the Particular Base

Now, we all know that

ddxzx=Czxfrac{d}{dx}z^x=Cz^xdxd​zx=Czx

The worth of ‘C’ trusted the bottom.

For 3x,

Cā‰ˆ1.0986Capprox1.0986Cā‰ˆ1.0986

Okay however what if we might discover a base for which C is strictly 1?

Do we’ve got any quantity?

If sure, then we get

Our by-product would turn into

ddxzx=zxfrac{d}{dx}z^x=z^xdxd​zx=zx

In different phrases, we will say that the perform can be precisely equal to its personal by-product.

So, now we’re on the lookout for a base z that satisfies

lim⁔h→0zhāˆ’1h=1lim_{hto0}
frac{z^h-1}{h}=1
h→0lim​hzhāˆ’1​=1

There’s one explicit optimistic quantity that satisfies this situation and also you all know what’s that quantity is.

We name this quantity

and its numerical worth is

eā‰ˆ2.71828eapprox2.71828eā‰ˆ2.71828

For this explicit base, the fixed turns into

Due to this fact,

ddxex=1ā‹…exfrac{d}{dx}e^x
=
1cdot e^x
dxd​ex=1ā‹…ex

which supplies us

ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

Ā·Ā·Ā·

So What Did We Really Uncover?

We began with a basic exponential perform

Utilizing the definition of a by-product, we discovered

ddxzx=zxlim⁔h→0zhāˆ’1hfrac{d}{dx}z^x
=
z^x
lim_{hto0}
frac{z^h-1}{h}
dxd​zx=zxh→0lim​hzhāˆ’1​

We then noticed that the restrict is just a continuing that is determined by the bottom.

Then we’ve got written it as

ddxzx=Czxfrac{d}{dx}z^x=Cz^xdxd​zx=Czx

Then we requested:

Is there a base for which C=1?

The reply is sure.

That particular base is e.

Due to this fact,

ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

Now we’ve got an concept of how we acquired the by-product.

Within the earlier financial institution instance, ‘e’ appeared via repeated development and steady compounding.

Now, via calculus, we’ve got seen one other particular property of the identical quantity

ddxex=exfrac{d}{dx}e^x=e^xdxd​ex=ex

In easy phrases, we will say that ex grows at a charge equal to its present worth.

Now, Let’s Return to Sigmoid

Let’s as soon as once more have a look at the sigmoid equation.

σ(x)=11+eāˆ’xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+eāˆ’x1​

Now we’ve got some concept of what ‘e’ really is.

Now we deal with the entire equation.

The query right here is why does the sigmoid perform is on this explicit type?

To know this we must always return to logistic regression.

We began with a uncooked rating

‘z’ will be any actual quantity.

However for classification, we needed to interpret the mannequin’s output as a likelihood.

A likelihood should lie between 0 and 1

0<p<1

So we wish to rework any worth of ‘z’ into a worth between 0 and 1.

In different phrases, we wish one thing that may obtain

z∈(āˆ’āˆž,āˆž)zin(-infty,infty)z∈(āˆ’āˆž,āˆž)

and produce:

p∈(0,1)pin(0,1)p∈(0,1)

Constructing a Perform That Outputs Between 0 and 1

Now, the duty is to assemble such transformation.

However how can we try this?

Let’s begin with a quite simple statement.

Suppose we’ve got a quantity higher than 1.

For instance

If we take its reciprocal, we get

15=0.2frac{1}{5}=0.251​=0.2

which is between 0 and 1.

The identical concept works for any numbers higher than 1

12=0.5frac{1}{2}=0.521​=0.5
110=0.1frac{1}{10}=0.1101​=0.1
1100=0.01frac{1}{100}=0.011001​=0.01

Right here we will discover that

If

then

0<1A<10 < frac{1}{A} < 10<A1​<1

This provides us a easy concept.

If we will have a amount that’s all the time higher than 1, then taking its reciprocal will mechanically give us a worth between 0 and 1.

And that’s precisely the vary we wish for a likelihood.

Nevertheless, there may be another factor we’d like.

We don’t wish to use a hard and fast quantity comparable to 5 within the denominator.

as a result of that all the time give us the identical output.

Our output ought to change when the enter ‘x’ modifications.

For instance, we wish a optimistic enter to supply a bigger likelihood, whereas a unfavourable enter ought to produce a smaller likelihood.

So, we’d like a amount that modifications with x.

Now e Enters the Image

You might be proper. It is time for ‘e’ to enter.

That is the place the exponential perform we simply realized about turns into helpful.

Exponential features are all the time optimistic, which suggests

for each actual worth of x.

For instance:

eāˆ’2ā‰ˆ0.1353e^{-2}approx0.1353eāˆ’2ā‰ˆ0.1353
e2ā‰ˆ7.389e^2approx7.389e2ā‰ˆ7.389

Whether or not the x is unfavourable, zero, or optimistic, ex by no means turns into unfavourable or zero.

However the sigmoid equation comprises e-x.

Until right here we solely mentioned about ex.

So let’s first see what a unfavourable exponent means.

We already know what a optimistic exponent means.

For instance:

e2=eƗee^2=etimes ee2=eƗe

and:

e3=eƗeƗee^3=etimes etimes ee3=eƗeƗe

A unfavourable exponent represents the reciprocal of the corresponding optimistic exponent.

For instance:

eāˆ’1=1ee^{-1}=frac{1}{e}eāˆ’1=e1​

Equally

eāˆ’2=1e2e^{-2}=frac{1}{e^2}eāˆ’2=e21​

and

eāˆ’3=1e3e^{-3}=frac{1}{e^3}eāˆ’3=e31​

Normally, we will write as

eāˆ’x=1exe^{-x}=frac{1}{e^x}eāˆ’x=ex1​

So, e-x will not be a totally completely different perform.

It’s merely the reciprocal of ex.

Now we will use what we already learn about ex.

Since:

its reciprocal can also be optimistic

1ex>0frac{1}{e^x}>0ex1​>0

and since

eāˆ’x=1exe^{-x}=frac{1}{e^x}eāˆ’x=ex1​

we get

for each actual worth of x.

That is vital as a result of it provides us precisely the type of amount we’d like.

If e-x is all the time optimistic, then including 1 provides us a amount that’s all the time higher than 1

1+eāˆ’x>11+e^{-x}>11+eāˆ’x>1

And now we will use our reciprocal concept.

If a quantity is bigger than 1, its reciprocal lies between 0 and 1

0<11+eāˆ’x<10<frac{1}{1+e^{-x}}<10<1+eāˆ’x1​<1

Now we’ve got a perform whose output is all the time between 0 and 1.

The expression we simply acquired is

11+eāˆ’xfrac{1}{1+e^{-x}}1+eāˆ’x1​

and that is precisely the sigmoid perform we began with

σ(x)=11+eāˆ’xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+eāˆ’x1​

So as a substitute of trying on the sigmoid equation as a formulation, now we will perceive the instinct behind its construction.

We needed the output to lie between 0 and 1.

We noticed that the reciprocal of a quantity higher than 1 lies between 0 and 1.

As e-x is all the time optimistic, we used it to assemble a amount higher than 1

1+eāˆ’x>11+e^{-x}>11+eāˆ’x>1

Taking its reciprocal gave us

σ(x)=11+eāˆ’xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+eāˆ’x1​

This gave us the vary we needed.

However does this equation really behave the way in which we anticipated it to do?

Right here, our aim is to know the instinct behind the construction of the sigmoid perform.

There are different features that may map values to the vary 0 to 1, and why logistic regression makes use of sigmoid is said to odds and log-odds, a subject which we are going to discover in future blogs.

Does the Sigmoid Behave the Manner We Anticipated?

Let’s take a look at on few values.

First, let’s think about

Substituting into the sigmoid perform:

σ(0)=11+eāˆ’0sigma(0)=frac{1}{1+e^{-0}}σ(0)=1+eāˆ’01​

as

we get

σ(0)=11+1=0.5sigma(0)=frac{1}{1+1}=0.5σ(0)=1+11​=0.5

When the enter is 0, the sigmoid provides us precisely 0.5.

Now let’s take a optimistic quantity

then

σ(2)=11+eāˆ’2sigma(2)=frac{1}{1+e^{-2}}σ(2)=1+eāˆ’21​

We already seen

eāˆ’2ā‰ˆ0.1353e^{-2}approx0.1353eāˆ’2ā‰ˆ0.1353

which supplies

σ(2)=11+0.1353=11.1353ā‰ˆ0.881sigma(2)
=
frac{1}{1+0.1353}
=
frac{1}{1.1353}
approx 0.881
σ(2)=1+0.13531​=1.13531ā€‹ā‰ˆ0.881

The sigmoid transformed the enter 2 into roughly 0.881 or 88.1%.

Now let’s examine what occurs when the enter is a unfavourable quantity.

Contemplate

Then

σ(āˆ’2)=11+eāˆ’(āˆ’2)sigma(-2)
=
frac{1}{1+e^{-(-2)}}
σ(āˆ’2)=1+eāˆ’(āˆ’2)1​
σ(āˆ’2)=11+e2sigma(-2)
=
frac{1}{1+e^2}
σ(āˆ’2)=1+e21​

We all know

e2ā‰ˆ7.389e^2approx7.389e2ā‰ˆ7.389

Lastly we get

σ(āˆ’2)=11+7.389=18.389ā‰ˆ0.119begin{aligned}
sigma(-2)
&=frac{1}{1+7.389}
&=frac{1}{8.389}
&approx0.119
finish{aligned}
σ(āˆ’2)​=1+7.3891​=8.3891ā€‹ā‰ˆ0.119​

So the sigmoid transformed the enter -2 into roughly 0.119 or 11.9%.

Now we will see how the sigmoid behaves.

For a unfavourable enter:

x=āˆ’2⟶σ(x)ā‰ˆ0.119x=-2
quadlongrightarrowquad
sigma(x)approx0.119
x=āˆ’2⟶σ(x)ā‰ˆ0.119

For zero:

x=0⟶σ(x)=0.5x=0
quadlongrightarrowquad
sigma(x)=0.5
x=0⟶σ(x)=0.5

For a optimistic enter:

x=2⟶σ(x)ā‰ˆ0.881x=2
quadlongrightarrowquad
sigma(x)approx0.881
x=2⟶σ(x)ā‰ˆ0.881

In order x will increase, the sigmoid output strikes from values near 0, passes via 0.5 and strikes towards 1.

Within the excessive instances:

xā†’āˆ’āˆžāŸ¹Ļƒ(x)→0xrightarrow-infty
quadLongrightarrowquad
sigma(x)rightarrow0
xā†’āˆ’āˆžāŸ¹Ļƒ(x)→0

and

x→+āˆžāŸ¹Ļƒ(x)→1xrightarrow+infty
quadLongrightarrowquad
sigma(x)rightarrow1
x→+āˆžāŸ¹Ļƒ(x)→1

That is precisely the habits we needed from a perform that transforms any actual quantity into one thing between 0 and 1.

Picture by Creator

Now we’ve got an concept of how we acquired the equation of the sigmoid perform.

For those who bear in mind, in my latest blogs, after we mentioned backpropagation and neural networks normally, we talked about activation features and why they’re vital.

We used the ReLU activation perform to know these ideas.

Now, we will additionally use sigmoid as an activation perform.

But when we use sigmoid as an activation perform, there may be another factor we have to know.

Through the backward cross, we already know that the community calculates gradients utilizing derivatives.

So, if sigmoid is a part of the community, we have to differentiate it as properly.

Now let’s focus solely on deriving the by-product of the sigmoid perform step-by-step.

σ(x)=11+eāˆ’xsigma(x)=frac{1}{1+e^{-x}}σ(x)=1+eāˆ’x1​

As an alternative of carrying the exponential time period all through calculations, we will merely use the sigmoid output itself.

That is the by-product we use each time sigmoid seems within the gradient calculations of a neural community.

Ā·Ā·Ā·

Abstract

Within the upcoming blogs, we’re going to focus on subjects like vanishing gradients and exploding gradients.

As we discover these subjects, we are going to come throughout the sigmoid perform, and we can even want its by-product.

If we derive the sigmoid perform and its by-product in these blogs, the dialogue might turn into lengthy, and we could lose deal with the precise idea that we are attempting to know.

It might even be higher to have an concept of the place the sigmoid perform and its by-product come from earlier than utilizing them in additional ideas.

We first began with the financial institution instance to see how e seems. We then realized about its vital property in calculus and, utilizing these concepts, step by step constructed the sigmoid equation.

We noticed how this equation is utilized in logistic regression and neural networks, and we additionally derived its by-product.

Now, after we transfer on to the upcoming subjects, we have already got this basis which can be helpful for us.

I hope you discovered this weblog useful in understanding an idea that we incessantly use.

You probably have any questions or options for enchancment, be happy to share them within the feedback on LinkedIn.

And if you have not learn my newest weblog sequence on backpropagation but, you’ll be able to learn it right here.

Generally, transferring ahead means going again and understanding the fundamentals.

Thanks for studying!

Ā·Ā·Ā·



Source link

Tags: FunctionNetworksNeuralSigmoid
Previous Post

Planetary prediction engine: Automating world fashions through Earth AI

Next Post

Bridgewater State College Awarded $380,000 MassTech Grant to Develop Undergraduate Quantum Labs

Next Post
Bridgewater State College Awarded 0,000 MassTech Grant to Develop Undergraduate Quantum Labs

Bridgewater State College Awarded $380,000 MassTech Grant to Develop Undergraduate Quantum Labs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Fetching latest news…
FUTURENEWS24
Live Feed
All
AI
Dev
Industry
Frontier
Updates in 60s
FN24 AI & Tech
View All →
Future News 24

The world's leading source for AI research, emerging technology, and the people building the future. Independent, rigorous, and always ahead.

CATEGORIES

  • AI Platforms & Apps
  • AI Research & Breakthroughs
  • BioTechnology
  • Data Science & MLOps
  • Decentralized Technology
  • Developer AI & Open-Source Ecosystem
  • Emerging Technologies & Innovations
  • Ethics & Policy
  • Industry & Business
  • Quantum Computing
  • Uncategorized

LATEST

  • [2602.13312] PeroMAS: A Multi-agent System of Perovskite Materials Discovery
  • GPT-6 Astra overview: code overview good points, privateness, and value
  • GPT-6 Astra: Options, Benchmarks, Pricing, and What’s New
  • About Us
  • Advertise with Us
  • Disclaimer
  • Privacy Policy
  • DMCAĀ 
  • Cookie Policy
  • Terms and Conditions
  • Contact us

Ā© 2026 Future News 24. All rights reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • AI Research
  • Platforms
  • Ethics
  • Developer AI
  • Industry
  • Data Science
  • Emerging Tech
  • Quantum
  • BioTech
  • Decentralized

Ā© 2026 Future News 24. All rights reserved.

Website security powered by MilesWeb