lib/svmkit/preprocessing/min_max_scaler.rb in svmkit-0.1.2 vs lib/svmkit/preprocessing/min_max_scaler.rb in svmkit-0.1.3
- old
+ new
@@ -29,10 +29,11 @@
# Creates a new normalizer for scaling each feature to a given range.
#
# @overload new(feature_range: [0.0, 1.0]) -> MinMaxScaler
#
- # @param feature_range [Array] (defaults to: [0.0, 1.0]) The desired range of samples.
+ # @param params [Hash] The parameters for MinMaxScaler.
+ # @option params [Array<Float>] :feature_range ([0.0, 1.0]) The desired range of samples.
def initialize(params = {})
@params = DEFAULT_PARAMS.merge(Hash[params.map { |k, v| [k.to_sym, v] }])
@min_vec = nil
@max_vec = nil
end