Browse Source

feat(numpy): update exercise 8

- update delemiter in formula to import dataset
- update subject request to make it consistent with audit
pull/2294/head
nprimo 12 months ago committed by Niccolò Primo
parent
commit
8a0edc5fbd
  1. 2
      subjects/ai/numpy/README.md
  2. 4
      subjects/ai/numpy/audit/README.md

2
subjects/ai/numpy/README.md

@ -217,7 +217,7 @@ How to tell if a given 2D array has null columns?
4. What is the average % of alcohol on all wines in the data set ? If needed, drop `np.nan` values
5. Compute the minimum, the maximum, the 25th percentile, the 50th percentile, the 75th percentile, the median (50th percentile) of the pH
5. Compute the minimum, the maximum, the 25th percentile, the 50th percentile, the 75th percentile, the mean of the pH
6. Compute the average quality of the wines having the 20% least sulphates

4
subjects/ai/numpy/audit/README.md

@ -244,7 +244,7 @@ There are two steps in this exercise:
##### The exercise is validated if all questions of the exercise are validated
###### Has the text file successfully been loaded in a NumPy array with `genfromtxt('winequality-red.csv', delimiter=',')` and the reduced arrays weights **76800 bytes**?
###### Has the text file successfully been loaded in a NumPy array with `genfromtxt('winequality-red.csv', delimiter=';')` and the reduced arrays weights **76800 bytes**?
###### Is the output the following?
@ -275,7 +275,7 @@ This slicing gives the answer `my_data[[1,6,11],:]`.
max: 4.01
```
> *Note: Using `percentile` or `median` may give different results depending on the duplicate values in the column. If you do not have my results please use `percentile`.*
> *Note: Using `percentile` or `median` may give different results depending on the duplicate values in the column. If you do not have my results please use `percentile`.*
###### Is the answer ~`5.2`? The first step is to get the percentile 20% of the column `sulphates`, then create a boolean array that contains `True` of the value is smaller than the percentile 20%, then select this rows with the column quality and compute the `mean`.

Loading…
Cancel
Save