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
Copy file name to clipboardExpand all lines: README.md
+1
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_hastie_10_2 | Generates data for binary classification used in Hastie et al. |[link](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.make_hastie_10_2.html)
43
44
make_gaussian_quantiles | Generate a swiss roll dataset. | [link](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.make_gaussian_quantiles.html)
44
45
45
46
**Disclaimer**: SyntheticDatasets.jl borrows code and documentation from
Copy file name to clipboardExpand all lines: src/sklearn.jl
+19-1
Original file line number
Diff line number
Diff line change
@@ -362,6 +362,24 @@ function generate_swiss_roll(; n_samples::Int = 100,
362
362
returnconvert(features, labels)
363
363
end
364
364
365
+
"""
366
+
function generate_hastie_10_2(; n_samples::Int = 12000,
367
+
random_state::Union{Int,Nothing} = nothing)
368
+
Generates data for binary classification used in Hastie et al. 2009, Example 10.2.
369
+
#Arguments
370
+
- `n_samples::Int = 100`: The number of samples..
371
+
- `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