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: src/sklearn.jl
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -361,3 +361,22 @@ function generate_swiss_roll(; n_samples::Int = 100,
361
361
362
362
returnconvert(features, labels)
363
363
end
364
+
365
+
366
+
"""
367
+
function generate_hastie_10_2(; n_samples::Int = 12000,
368
+
random_state::Union{Int,Nothing} = nothing)
369
+
Generates data for binary classification used in Hastie et al. 2009, Example 10.2.
370
+
#Arguments
371
+
- `n_samples::Int = 100`: The number of samples..
372
+
- `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