Skip to content

Commit

Permalink
make link text more descriptive (#427)
Browse files Browse the repository at this point in the history
Co-authored-by: Sven van der Burg <[email protected]>
  • Loading branch information
tobyhodges and svenvanderburg authored Nov 8, 2023
1 parent 512a5c8 commit e2cb1e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions episodes/2-keras.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,9 @@ For this episode we will keep it at just a training and test set however.

To split the cleaned dataset into a training and test set we will use a very convenient
function from sklearn called `train_test_split`.
This function takes a number of parameters which are extensively explained [here](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html) :
- The first two parameters are the dataset (in our case features) and the corresponding targets (i.e. defined as target).

This function takes a number of parameters which are extensively explained in [the scikit-learn documentation](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html) :
- The first two parameters are the dataset (in our case `features`) and the corresponding targets (i.e. defined as target).
- Next is the named parameter `test_size` this is the fraction of the dataset that is
used for testing, in this case `0.2` means 20% of the data will be used for testing.
- `random_state` controls the shuffling of the dataset, setting this value will reproduce
Expand Down

0 comments on commit e2cb1e6

Please sign in to comment.