Permalink
Please sign in to comment.
Browse files
Merge pull request #10 from michaelhush/DiffEvo
Differential evolution added to M-LOOP.
- Loading branch information...
Showing
with
587 additions
and 28 deletions.
- +1 −1 docs/contributing.rst
- +67 −11 docs/install.rst
- +19 −0 examples/differential_evolution_complete_config.txt
- +15 −0 examples/differential_evolution_simple_config.txt
- +52 −7 mloop/controllers.py
- +302 −6 mloop/learners.py
- +115 −3 mloop/visualizations.py
- +16 −0 tests/test_examples.py
| @@ -0,0 +1,19 @@ | ||
| +#Differential Evolution Complete Options | ||
| +#--------------------------------------- | ||
| + | ||
| +#General options | ||
| +max_num_runs = 500 #number of planned runs | ||
| +target_cost = 0.1 #cost to beat | ||
| + | ||
| +#Differential evolution controller options | ||
| +controller_type = 'differential_evolution' | ||
| +num_params = 2 #number of parameters | ||
| +min_boundary = [-1.2,-2] #minimum boundary | ||
| +max_boundary = [10.0,4] #maximum boundary | ||
| +trust_region = [3.2,3.1] #maximum move distance from best params | ||
| +first_params = None #first parameters to try if None a random set of parameters is chosen | ||
| +evolution_strategy='best2' #evolution strategy can be 'best1', 'best2', 'rand1' and 'rand2'. Best uses the best point, rand uses a random one, the number indicates the number of directions added. | ||
| +population_size=10 #a multiplier for the population size of a generation | ||
| +mutation_scale=(0.4, 1.1) #the minimum and maximum value for the mutation scale factor. Each generation is randomly selected from this. Each value must be between 0 and 2. | ||
| +cross_over_probability=0.8 #the probability a parameter will be resampled during a mutation in a new generation | ||
| +restart_tolerance=0.02 #the fraction the standard deviation in the costs of the population must reduce from the initial sample, before the search is restarted. |
| @@ -0,0 +1,15 @@ | ||
| +#Differential Evolution Basic Options | ||
| +#------------------------------------ | ||
| + | ||
| +#General options | ||
| +max_num_runs = 500 #number of planned runs | ||
| +target_cost = 0.1 #cost to beat | ||
| + | ||
| +#Differential evolution controller options | ||
| +controller_type = 'differential_evolution' | ||
| +num_params = 1 #number of parameters | ||
| +min_boundary = [-4.8] #minimum boundary | ||
| +max_boundary = [10.0] #maximum boundary | ||
| +trust_region = 0.6 #maximum % move distance from best params | ||
| +first_params = [5.3] #first parameters to try | ||
| + |
Oops, something went wrong.
0 comments on commit
be1dca8