mirror of https://github.com/01-edu/public.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.
76 lines
1.5 KiB
76 lines
1.5 KiB
2 years ago
|
#### Exercise 0: Environment and libraries
|
||
|
|
||
|
##### The exercise is validated is all questions of the exercise are validated.
|
||
|
|
||
|
##### Activate the virtual environment. If you used `conda` run `conda activate your_env`.
|
||
|
|
||
|
##### Run `python --version`.
|
||
|
|
||
|
###### Does it print `Python 3.x`? x >= 8
|
||
|
|
||
|
##### Do `import jupyter` and `import numpy` run without any error ?
|
||
|
|
||
|
---
|
||
|
---
|
||
|
|
||
|
#### Exercise 1: The neuron
|
||
|
|
||
|
##### The question 1 is validated if this code:
|
||
|
|
||
|
```
|
||
|
neuron = Neuron(0,1,4)
|
||
|
neuron.feedforward(2,3)
|
||
|
```
|
||
|
|
||
|
returns **0.9990889488055994**.
|
||
|
|
||
|
---
|
||
|
---
|
||
|
|
||
|
#### Exercise 2: Neural network
|
||
|
|
||
|
##### The question 1 is validated the output is: **0.9524917424084265**
|
||
|
|
||
|
---
|
||
|
---
|
||
|
|
||
|
#### Exercise 3: Log loss
|
||
|
|
||
|
##### The question 1 is validated if the output is: **0.5472899351247816**.
|
||
|
|
||
|
---
|
||
|
---
|
||
|
|
||
|
#### Exercise 4: Forward propagation
|
||
|
|
||
|
##### The exercise is validated is all questions of the exercise are validated
|
||
|
|
||
|
##### The question 1 is validated if the output is:
|
||
|
```
|
||
|
Bob: 0.7855253278357536
|
||
|
Eli: 0.7771516558846259
|
||
|
Tom: 0.8067873659804015
|
||
|
Ryan: 0.7892343955586032
|
||
|
```
|
||
|
##### The question 2 is validated if the logloss for the 4 students is **0.5485133607757963**.
|
||
|
|
||
|
---
|
||
|
---
|
||
|
|
||
|
#### Exercise 5: Regression
|
||
|
|
||
|
##### The exercise is validated is all questions of the exercise are validated
|
||
|
|
||
|
##### The question 1 is validated if the output is **7**.
|
||
|
|
||
|
##### The question 2 is validated if the outputs are:
|
||
|
|
||
|
```
|
||
|
Bob: 14.918863163724454
|
||
|
Eli: 14.83137890625537
|
||
|
Tom: 15.086662606964074
|
||
|
Ryan: 14.939270885974128
|
||
|
```
|
||
|
|
||
|
##### The question 3 is validated if the MSE is **10.237608699909138**
|