Parcourir la source

Merge branch 'release/v1.0.14'

Jérôme BUISINE il y a 3 ans
Parent
commit
7bf45ef102
4 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 2 2
      docs/source/conf.py
  2. 1 1
      macop/callbacks/multi.py
  3. 2 2
      macop/policies/reinforcement.py
  4. 1 1
      setup.py

+ 2 - 2
docs/source/conf.py

@@ -25,9 +25,9 @@ copyright = '2021, Jérôme BUISINE'
 author = 'Jérôme BUISINE'
 
 # The short X.Y version
-version = '1.0.13'
+version = '1.0.14'
 # The full version, including alpha/beta/rc tags
-release = 'v1.0.13'
+release = 'v1.0.14'
 
 
 # -- General configuration ---------------------------------------------------

+ 1 - 1
macop/callbacks/multi.py

@@ -75,7 +75,7 @@ class MultiCheckpoint(Callback):
                         globalEvaluation = int(data[0])
 
                         if self._algo.getParent() is not None:
-                            self._algo.getParen(
+                            self._algo.getParent(
                             )._numberOfEvaluations = globalEvaluation
                         else:
                             self._algo._numberOfEvaluations = globalEvaluation

+ 2 - 2
macop/policies/reinforcement.py

@@ -31,7 +31,7 @@ class UCBPolicy(Policy):
     The value of attribute ``C`` will allow us to specify whether we wish to exploit or explore further in relation to our earned rewards. 
     A low value of ``C`` (e.g. 2) will allow more exploitation, while a high value of ``C`` (e.g. 1000) will allow exploration.
 
-    The ``exp_rate`` variable avoids using an operator too much and allows to explore from time to time (especially if the variable ``C`` has a small value). Typical value for ``exp_rate`` can be 0.9.
+    The ``exp_rate`` variable avoids using an operator too much and allows to explore from time to time (especially if the variable ``C`` has a small value). Typical value for ``exp_rate`` can be 0.1.
 
     Example:
 
@@ -74,7 +74,7 @@ class UCBPolicy(Policy):
     >>> policy.occurences # one more due to first evaluation
     [53, 50]
     """
-    def __init__(self, operators, C=100., exp_rate=0.9):
+    def __init__(self, operators, C=100., exp_rate=0.1):
         """UCB Policy initialiser
 
         Args:

+ 1 - 1
setup.py

@@ -73,7 +73,7 @@ class TestCommand(distutils.command.check.check):
 
 setup(
     name='macop',
-    version='1.0.13',
+    version='1.0.14',
     description='Minimalist And Customisable Optimisation Package',
     long_description=open('README.md').read(),
     long_description_content_type='text/markdown',