Skip to content

Commit

Permalink
formula
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Aug 23, 2022
1 parent 15659f8 commit a8b9e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _episodes/02-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ Lastly, normalisation - scaling variables so that they span consistent ranges -
As with creating train and test splits, it is a common enough task that there are plenty of pre-built functions for us to choose from. We will choose the [Min-Max Scaler](https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html) from the sklearn package, which scales each feature between zero and one.

$$
std = \frac{x - x_{min}}{x_{max}-x_{min}}
x_{std} = \frac{x - x_{min}}{x_{max}-x_{min}}
$$

$$
x_{scaled} = {std} * (x_{max}-x_{min}) + x_{min}
x_{scaled} = x_{std} * (x_{max}-x_{min}) + x_{min}
$$

```python
Expand Down

0 comments on commit a8b9e01

Please sign in to comment.