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
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -211,4 +211,27 @@ function generate_classification(; n_samples::Int = 100,
211
211
random_state = random_state)
212
212
213
213
returnconvert(features, labels)
214
-
end
214
+
end
215
+
"""
216
+
function generate_swiss_roll(; n_samples::Int = 100,
217
+
noise::Float64 = 0.0,
218
+
random_state::Union{Int,Nothing} = nothing)
219
+
Generate a swiss roll dataset.
220
+
#Arguments
221
+
- `n_samples::Int = 100`: The number of samples.
222
+
- `noise::Float64 = 0.0 : Standard deviation of Gaussian noise added to the data.
223
+
- `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