Skip to content

Commit

Permalink
📚 Fix document of sythetic data generation method
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Jun 24, 2019
1 parent 408e96f commit a9e509f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rumale/dataset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def dump_libsvm_file(data, labels, filename, zero_based: false)
# @param noise [Float] The standard deviaion of gaussian noise added to the data.
# If nil is given, no noise is added.
# @param factor [Float] The scale factor between inner and outer circles. The interval of factor is (0, 1).
# @random_seed [Integer] The seed value using to initialize the random generator.
# @param random_seed [Integer] The seed value using to initialize the random generator.
def make_circles(n_samples, shuffle: true, noise: nil, factor: 0.8, random_seed: nil)
Rumale::Validation.check_params_integer(n_samples: n_samples)
Rumale::Validation.check_params_boolean(shuffle: shuffle)
Expand Down Expand Up @@ -95,7 +95,7 @@ def make_circles(n_samples, shuffle: true, noise: nil, factor: 0.8, random_seed:
# @param shuffle [Boolean] The flag indicating whether to shuffle the dataset
# @param noise [Float] The standard deviaion of gaussian noise added to the data.
# If nil is given, no noise is added.
# @random_seed [Integer] The seed value using to initialize the random generator.
# @param random_seed [Integer] The seed value using to initialize the random generator.
def make_moons(n_samples, shuffle: true, noise: nil, random_seed: nil)
Rumale::Validation.check_params_integer(n_samples: n_samples)
Rumale::Validation.check_params_boolean(shuffle: shuffle)
Expand Down

0 comments on commit a9e509f

Please sign in to comment.