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
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -268,3 +268,25 @@ function generate_low_rank_matrix(; n_samples::Int = 100,
268
268
random_state = random_state)
269
269
return features
270
270
end
271
+
272
+
"""
273
+
function generate_swiss_roll(; n_samples::Int = 100,
274
+
noise::Float64 = 0.0,
275
+
random_state::Union{Int,Nothing} = nothing)
276
+
Generate a swiss roll dataset.
277
+
#Arguments
278
+
- `n_samples::Int = 100`: The number of samples.
279
+
- `noise::Float64 = 0.0 : Standard deviation of Gaussian noise added to the data.
280
+
- `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