100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Case

Assignments week 2 Computational neuroscience

Rating
-
Sold
-
Pages
4
Grade
8-9
Uploaded on
21-06-2022
Written in
2021/2022

Score 80/100 points.

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
June 21, 2022
Number of pages
4
Written in
2021/2022
Type
Case
Professor(s)
M. senden
Grade
8-9

Subjects

Content preview

Before you turn this problem in, make sure everything runs as expected. First, restart the
kernel (in the menubar, select Kernel→Restart) and then run all cells (in the menubar,
select Cell→Run All).
Make sure you fill in any place that says YOUR CODE HERE or "YOUR ANSWER HERE", as
well as your name and collaborators below:
NAME = Kiki
COLLABORATORS =

File "<ipython-input-51-dc8f63ce51ce>", line 2
COLLABORATORS =
^
SyntaxError: invalid syntax




Assignments week 2
Complete the assignments below, save the notebook and submit them on canvas.

Assignment 2.1
The sigmoid function from the exercises is not the only activation function that has a
characteristic s shape. Another such function is the hypobolic tangent:

e x −e − x
σ ( x )= x −x
e +e
In contrast to the sigmoid function we used previously, this function is not bounded
between 0 and 1 but between −1 and 1. In order to be able to use this activation function in
neural networks, we need its derivative.
Compute the derivative of the hyperbolic tangent function (show intermediate steps).
Hint 1: split the numerator and denominator into two functions. f ( g )=e x −e − x and
f (x)
g ( x )=e x +e − x such that σ ( x )=
g(x)

Hint 2: the final derivative should be σ ′ ( x )=1 − σ ( x )2

$ \sigma (x) = \frac{e^x - e^{-x}}{e^x + e^{-x}} $
f (x)
f ( x )=e x − e− x and g ( x )=e x +e − x such that σ ( x )=
g(x)

f ′ ( x ) =e x + e −x
x −x
g ′ ( x )=e −e
$4.83
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
kikiboumans Maastricht University
Follow You need to be logged in order to follow users or courses
Sold
150
Member since
4 year
Number of followers
88
Documents
25
Last sold
4 weeks ago

4.2

16 reviews

5
5
4
10
3
0
2
1
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions