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
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -238,4 +238,26 @@ function generate_classification(; n_samples::Int = 100,
238
238
random_state = random_state)
239
239
240
240
returnconvert(features, labels)
241
-
end
241
+
end
242
+
243
+
"""
244
+
function generate_swiss_roll(; n_samples::Int = 100,
245
+
noise::Float64 = 0.0,
246
+
random_state::Union{Int,Nothing} = nothing)
247
+
Generate a swiss roll dataset.
248
+
#Arguments
249
+
- `n_samples::Int = 100`: The number of samples.
250
+
- `noise::Float64 = 0.0 : Standard deviation of Gaussian noise added to the data.
251
+
- `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