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/SyntheticDatasets.jl
+23-1
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,29 @@ function generate_blobs(;n_samples::Union{Int, Array{Int, 1}} = 100,
75
75
returnconvert(features, labels)
76
76
end
77
77
78
-
functionconvert(features::Array{T, 2}, labels::Array{Int, 1})::DataFramewhere T <:Number
78
+
"""
79
+
generate_s_curve(; n_samples::Int = 100,
80
+
noise = nothing,
81
+
random_state = nothing)::DataFrame
82
+
Generate an S curve dataset. Sklearn interface to make_s_curve.
83
+
# Arguments
84
+
- `n_samples::Int = 100`: The number of sample points on the S curve.
85
+
- `noise::Union{Nothing, Float64} = nothing`: Standard deviation of Gaussian noise added to the data.
86
+
- `random_state::Union{Int, Nothing} = nothing`: Determines random number generation for dataset creation. Pass an int for reproducible output across multiple function calls.
0 commit comments