Skip to content

Commit

Permalink
minor (change word subgroups to groups)
Browse files Browse the repository at this point in the history
  • Loading branch information
YSaxon committed Sep 16, 2020
1 parent c629414 commit 2c6fef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastai/data/transforms.py
Expand Up @@ -166,7 +166,7 @@ def _inner(o):

# Cell
def GroupedSplitter(groupkey,valid_pct=0.2, seed=None):
"Split `items` between train/val with `valid_pct` randomly, ensuring that subgroups are not split between sets. Groups are defined by a group key extractor function, or by a colname if `o` is a DataFrame"
"Split `items` between train/val with `valid_pct` randomly, ensuring that groups are not split between sets. Groups are defined by a group key extractor function, or by a colname if `o` is a DataFrame"
def _inner(o):
if callable(groupkey):
ids=pd.DataFrame(o)
Expand Down
2 changes: 1 addition & 1 deletion nbs/05_data.transforms.ipynb
Expand Up @@ -668,7 +668,7 @@
"source": [
"# export\n",
"def GroupedSplitter(groupkey,valid_pct=0.2, seed=None):\n",
" \"Split `items` between train/val with `valid_pct` randomly, ensuring that subgroups are not split between sets. Groups are defined by a group key extractor function, or by a colname if `o` is a DataFrame\"\n",
" \"Split `items` between train/val with `valid_pct` randomly, ensuring that groups are not split between sets. Groups are defined by a group key extractor function, or by a colname if `o` is a DataFrame\"\n",
" def _inner(o):\n",
" if callable(groupkey):\n",
" ids=pd.DataFrame(o)\n",
Expand Down

0 comments on commit 2c6fef5

Please sign in to comment.