-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add make_moons generator + some doc reorg (#185)
- Loading branch information
1 parent
5c20c7b
commit bea6ec4
Showing
5 changed files
with
139 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/Manifest.toml | ||
docs/build | ||
.vscode | ||
/test.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,88 @@ | ||
```@meta | ||
CollapsedDocStrings = true | ||
``` | ||
|
||
# API Reference | ||
|
||
## Index | ||
|
||
```@index | ||
Order = [:type, :function] | ||
Modules = [MLUtils] | ||
Pages = ["api.md"] | ||
## Core API | ||
|
||
```@docs | ||
getobs | ||
getobs! | ||
numobs | ||
``` | ||
|
||
## Docs | ||
## Lazy Transforms | ||
|
||
```@docs | ||
filterobs | ||
groupobs | ||
joinobs | ||
mapobs | ||
shuffleobs | ||
``` | ||
|
||
## Batching, Iteration, and Views | ||
|
||
```@docs | ||
batch | ||
batchsize | ||
batchseq | ||
BatchView | ||
chunk | ||
DataLoader | ||
eachobs | ||
DataLoader | ||
obsview | ||
ObsView | ||
randobs | ||
``` | ||
|
||
## Partitioning | ||
|
||
```@docs | ||
leavepout | ||
kfolds | ||
splitobs | ||
``` | ||
|
||
## Array Constructors | ||
|
||
```@docs | ||
falses_like | ||
fill_like | ||
filterobs | ||
ones_like | ||
trues_like | ||
zeros_like | ||
``` | ||
|
||
## Resampling | ||
|
||
```@docs | ||
oversample | ||
undersample | ||
``` | ||
|
||
## Operations | ||
|
||
```@docs | ||
chunk | ||
flatten | ||
getobs | ||
getobs! | ||
joinobs | ||
group_counts | ||
group_indices | ||
groupobs | ||
kfolds | ||
leavepout | ||
mapobs | ||
numobs | ||
normalise | ||
obsview | ||
ObsView | ||
ones_like | ||
oversample | ||
randobs | ||
rpad_constant | ||
shuffleobs | ||
splitobs | ||
stack | ||
unbatch | ||
undersample | ||
unsqueeze | ||
unstack | ||
zeros_like | ||
``` | ||
|
||
|
||
## Datasets Docs | ||
## Datasets | ||
|
||
```@docs | ||
Datasets.load_iris | ||
Datasets.make_sin | ||
Datasets.make_spiral | ||
Datasets.make_poly | ||
Datasets.make_moons | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
module Datasets | ||
using Random | ||
using DelimitedFiles: readdlm | ||
using MLUtils: getobs, shuffleobs | ||
|
||
include("load_datasets.jl") | ||
export load_iris | ||
|
||
include("generators.jl") | ||
export make_spiral, | ||
make_poly, | ||
make_sin | ||
make_sin, | ||
make_moons | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters