mirror of https://github.com/01-edu/Branch-AI.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
419 B
18 lines
419 B
2 years ago
|
# Exercise 2 Sigmoid
|
||
|
|
||
|
The goal of this exercise is to learn to compute and plot the sigmoid function.
|
||
|
|
||
|
1. On the same plot, plot the sigmoid function and the custom sigmoids defined as:
|
||
|
|
||
|
- `sigmoid1(x) = 1/(1+ exp(-(0.5*x + 3)))`
|
||
|
|
||
|
- `sigmoid2(x) = 1/(1+ exp(-(5*x + 11)))`
|
||
|
|
||
|
- Add a line representing the probability=0.5
|
||
|
|
||
|
The plot should look like this:
|
||
|
|
||
|
![alt text][ex2q1]
|
||
|
|
||
|
[ex2q1]: ./w2_day2_ex2_q1.png "Scatter plot"
|