Class: FeldtRuby::Optimize::RandomSearcher
- Defined in:
- lib/feldtruby/optimize/random_search.rb
Overview
Random search that optimizes a given objective function.
Instance Attribute Summary
Attributes inherited from Optimizer
#archive, #num_optimization_steps, #objective, #options, #search_space, #termination_criterion
Attributes included from Logging
Instance Method Summary collapse
Methods inherited from Optimizer
#best, #init_archive, #initialize, #initialize_options, #log_end_of_optimization, #optimize, #time_per_step, #update_archive
Methods included from Logging
#__find_logger_set_on_instance_vars, #new_default_logger, #setup_logger_and_distribute_to_instance_variables
Constructor Details
This class inherits a constructor from FeldtRuby::Optimize::Optimizer
Instance Method Details
#optimization_step ⇒ Object
5 6 7 8 |
# File 'lib/feldtruby/optimize/random_search.rb', line 5 def optimization_step() # For random search we just generate a new random candidate in each step. [search_space.gen_candidate()] end |