You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2388f1b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ make_regression | Generate a random regression problem.
40
40
make_classification | Generate a random n-class classification problem. | [link](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.make_classification.html)
41
41
make_low_rank_matrix | Generate a mostly low rank matrix with bell-shaped singular values. | [link](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.make_low_rank_matrix.html)
42
42
make_swiss_roll | Generate a swiss roll dataset. | [link](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.make_swiss_roll.html)
43
+
make_gaussian_quantiles | Generate a swiss roll dataset. | [link](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.make_gaussian_quantiles.html)
43
44
44
45
**Disclaimer**: SyntheticDatasets.jl borrows code and documentation from
45
46
[scikit-learn](https://scikit-learn.org/stable/modules/classes.html#samples-generator) in the dataset module, but *it is not an official part
Copy file name to clipboardExpand all lines: src/sklearn.jl
+39Lines changed: 39 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -361,3 +361,42 @@ function generate_swiss_roll(; n_samples::Int = 100,
361
361
362
362
returnconvert(features, labels)
363
363
end
364
+
365
+
"""
366
+
function generate_gaussian_quantiles(; mean::Array{<:Union{Number, Nothing}, 1} = [nothing],
367
+
cov::Float64 = 1,
368
+
n_samples::Int = 100,
369
+
n_features::Int = 2,
370
+
n_classes::Int = 3,
371
+
shuffle::Bool = true,
372
+
random_state::Union{Int, Nothing} = nothing)
373
+
374
+
Generate isotropic Gaussian and label samples by quantile.
375
+
#Arguments
376
+
- `mean::Array{<:Union{Number, Nothing}, 1} = [nothing]`: The mean of the multi-dimensional normal distribution. If None then use the origin (0, 0, …).
377
+
- `cov::Float64 = 1`: The covariance matrix will be this value times the unit matrix.
378
+
- `n_samples::Int = 100`: The total number of points equally divided among classes.
379
+
- `n_features::Int = 2`: The number of features for each sample.
380
+
- `n_classes::Int = 3`: The number of classes.
381
+
- `shuffle::Bool = true`: Shuffle the samples.
382
+
- `random_state::Union{Int, Nothing} = nothing`: Determines random number generation for dataset creation. Pass an int for reproducible output across multiple function calls. See Glossary.
0 commit comments