Changeset 715


Ignore:
Timestamp:
04/03/14 15:37:12 (2 years ago)
Author:
mmckerns
Message:

renamed 'nested' solvers as 'ensemble' solvers

Location:
mystic
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • mystic/README.md

    r701 r715  
    5555    http://mmckerns.github.io/project/mystic 
    5656 
    57 Mystic is distributed under a modified BSD license. 
     57Mystic is distributed under a 3-clause BSD license. 
    5858 
    5959Development Release 
  • mystic/mystic/abstract_ensemble_solver.py

    r713 r715  
    66#  - http://mmckerns.github.io/project/mystic/browser/mystic/LICENSE 
    77# 
    8 # Abstract Nested Solver Class 
     8# Abstract Ensemble Solver Class 
    99""" 
    1010This module contains the base class for launching several mystic solvers 
    1111instances -- utilizing a parallel "map" function to enable parallel 
    12 computing.  This module describes the nested solver interface.  As with 
     12computing.  This module describes the ensemble solver interface.  As with 
    1313the AbstractSolver, the "Solve" method must be overwritten with the derived 
    1414solver's optimization algorithm. Similar to AbstractMapSolver, a call to 
     
    2626===== 
    2727 
    28 A typical call to a 'nested' solver will roughly follow this example: 
     28A typical call to a 'ensemble' solver will roughly follow this example: 
    2929 
    3030    >>> # the function to be minimized and the initial values 
     
    7575 
    7676""" 
    77 __all__ = ['AbstractNestedSolver'] 
     77__all__ = ['AbstractEnsembleSolver'] 
    7878 
    7979 
     
    8282 
    8383 
    84 class AbstractNestedSolver(AbstractMapSolver): 
     84class AbstractEnsembleSolver(AbstractMapSolver): 
    8585    """ 
    86 AbstractNestedSolver base class for mystic optimizers that are nested within 
     86AbstractEnsembleSolver base class for mystic optimizers that are called within 
    8787a parallel map.  This allows pseudo-global coverage of parameter space using 
    8888non-global optimizers. 
     
    111111    signal_handler   - catches the interrupt signal.         [***disabled***] 
    112112        """ 
    113         super(AbstractNestedSolver, self).__init__(dim, **kwds) 
     113        super(AbstractEnsembleSolver, self).__init__(dim, **kwds) 
    114114       #self.signal_handler   = None 
    115115       #self._handle_sigint   = False 
  • mystic/mystic/ensemble.py

    r713 r715  
    99======= 
    1010 
    11 This module contains a collection of optimization that use map-reduce 
     11This module contains a collection of optimization routines that use "map" 
    1212to distribute several optimizer instances over parameter space. Each 
    1313solver accepts a imported solver object as the "nested" solver, which 
    1414becomes the target of the map function. 
    1515 
    16 The set of solvers built on mystic's AbstractNestdSolver are:: 
     16The set of solvers built on mystic's AbstractEnsembleSolver are:: 
    1717   LatticeSolver -- start from center of N grid points 
    1818   BuckshotSolver -- start from N random points in parameter space 
     
    3333from mystic.tools import wrap_function 
    3434 
    35 from mystic.abstract_nested_solver import AbstractNestedSolver 
    36  
    37  
    38 class LatticeSolver(AbstractNestedSolver): 
     35from mystic.abstract_ensemble_solver import AbstractEnsembleSolver 
     36 
     37 
     38class LatticeSolver(AbstractEnsembleSolver): 
    3939    """ 
    4040parallel mapped optimization starting from the center of N grid points 
     
    4646    nbins -- tuple of number of bins in each dimension 
    4747 
    48 All important class members are inherited from AbstractNestedSolver. 
     48All important class members are inherited from AbstractEnsembleSolver. 
    4949        """ 
    5050        super(LatticeSolver, self).__init__(dim, nbins=nbins) 
     
    111111 
    112112        # get the nested solver instance 
    113         solver = self._AbstractNestedSolver__get_solver_instance() 
     113        solver = self._AbstractEnsembleSolver__get_solver_instance() 
    114114        #------------------------------------------------------------- 
    115115 
     
    204204        return  
    205205 
    206 class BuckshotSolver(AbstractNestedSolver): 
     206class BuckshotSolver(AbstractEnsembleSolver): 
    207207    """ 
    208208parallel mapped optimization starting from the N random points 
     
    214214    npts  -- number of parallel solver instances 
    215215 
    216 All important class members are inherited from AbstractNestedSolver. 
     216All important class members are inherited from AbstractEnsembleSolver. 
    217217        """ 
    218218        super(BuckshotSolver, self).__init__(dim, npts=npts) 
     
    275275 
    276276        # get the nested solver instance 
    277         solver = self._AbstractNestedSolver__get_solver_instance() 
     277        solver = self._AbstractEnsembleSolver__get_solver_instance() 
    278278        #------------------------------------------------------------- 
    279279 
  • mystic/mystic/solvers.py

    r713 r715  
    4747 
    4848For more information, please see the solver documentation found here:: 
    49     - mystic.mystic.differential_evolution [differential evolution solvers] 
    50     - mystic.mystic.scipy_optimize         [scipy local-search solvers] 
    51     - mystic.mystic.nested                 [pseudo-global solvers] 
     49    - mystic.mystic.differential_evolution   [differential evolution solvers] 
     50    - mystic.mystic.scipy_optimize           [scipy local-search solvers] 
     51    - mystic.mystic.ensemble                 [pseudo-global solvers] 
    5252 
    5353or the API documentation found here:: 
    54     - mystic.mystic.abstract_solver        [the solver API definition] 
    55     - mystic.mystic.abstract_map_solver    [the parallel solver API] 
    56     - mystic.mystic.abstract_nested_solver [the nested solver API] 
     54    - mystic.mystic.abstract_solver          [the solver API definition] 
     55    - mystic.mystic.abstract_map_solver      [the parallel solver API] 
     56    - mystic.mystic.abstract_ensemble_solver [the ensemble solver API] 
    5757 
    5858 
     
    6464 
    6565# pseudo-global optimizers 
    66 from nested import BuckshotSolver 
    67 from nested import LatticeSolver 
     66from ensemble import BuckshotSolver 
     67from ensemble import LatticeSolver 
    6868 
    6969# local-search optimizers 
  • mystic/setup.py

    r713 r715  
    203203by the `pathos` package, and thus with little new code solvers are 
    204204extended to high-performance computing. For more information, see 
    205 `mystic.mystic.abstract_map_solver`, `mystic.mystic.abstract_nested_solver`, 
     205`mystic.mystic.abstract_map_solver`, `mystic.mystic.abstract_ensemble_solver`, 
    206206and the pathos documentation at http://dev.danse.us/trac/pathos. 
    207207 
    208208Important classes and functions are found here:: 
    209209 
    210     - mystic.mystic.solvers                [solver optimization algorithms] 
    211     - mystic.mystic.termination            [solver termination conditions] 
    212     - mystic.mystic.strategy               [solver population mutation strategies] 
    213     - mystic.mystic.monitors               [optimization monitors] 
    214     - mystic.mystic.tools                  [function wrappers, etc] 
    215     - mystic.mystic.forward_model          [cost function generator] 
    216     - mystic.models                        [a collection of standard models] 
    217     - mystic.math                          [some mathematical functions and tools] 
     210    - mystic.mystic.solvers                  [solver optimization algorithms] 
     211    - mystic.mystic.termination              [solver termination conditions] 
     212    - mystic.mystic.strategy                 [solver population mutation strategies] 
     213    - mystic.mystic.monitors                 [optimization monitors] 
     214    - mystic.mystic.tools                    [function wrappers, etc] 
     215    - mystic.mystic.forward_model            [cost function generator] 
     216    - mystic.models                          [a collection of standard models] 
     217    - mystic.math                            [some mathematical functions and tools] 
    218218 
    219219Solver and model API definitions are found here:: 
    220220 
    221     - mystic.mystic.abstract_solver        [the solver API definition] 
    222     - mystic.mystic.abstract_map_solver    [the parallel solver API] 
    223     - mystic.mystic.abstract_nested_solver [the nested solver API] 
    224     - mystic.models.abstract_model         [the model API definition] 
     221    - mystic.mystic.abstract_solver          [the solver API definition] 
     222    - mystic.mystic.abstract_map_solver      [the parallel solver API] 
     223    - mystic.mystic.abstract_ensemble_solver [the ensemble solver API] 
     224    - mystic.models.abstract_model           [the model API definition] 
    225225 
    226226 
     
    228228======= 
    229229 
    230 Mystic is distributed under a modified BSD license. 
     230Mystic is distributed under a 3-clause BSD license. 
    231231 
    232232    >>> import mystic 
Note: See TracChangeset for help on using the changeset viewer.