Module: Ai4r::Data::Parameterizable::ClassMethods
- Defined in:
- lib/ai4r/data/parameterizable.rb
Instance Method Summary collapse
-
#get_parameters_info ⇒ Object
Get info on what can be parameterized on this algorithm.
-
#parameters_info(params_info) ⇒ Object
Set info on what can be parameterized on this algorithm.
Instance Method Details
#get_parameters_info ⇒ Object
Get info on what can be parameterized on this algorithm. It returns a hash with the following format: { :param_name => “Info on the parameter” }
19 20 21 |
# File 'lib/ai4r/data/parameterizable.rb', line 19 def get_parameters_info return @_params_info_ || {} end |
#parameters_info(params_info) ⇒ Object
Set info on what can be parameterized on this algorithm. You must provide a hash with the following format: { :param_name => “Info on the parameter” }
26 27 28 29 30 31 |
# File 'lib/ai4r/data/parameterizable.rb', line 26 def parameters_info(params_info) @_params_info_ = params_info params_info.keys.each do |param| attr_accessor param end end |