Skip to content

Commit

Permalink
Fix use of unknown escape seqeuences
Browse files Browse the repository at this point in the history
  • Loading branch information
keszybz committed Jul 25, 2023
1 parent 60913c5 commit 256b6d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deap/cma.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def update(self, population):


class StrategyActiveOnePlusLambda(object):
"""A CMA-ES strategy that combines the :math:`(1 + \\lambda)` paradigm
r"""A CMA-ES strategy that combines the :math:`(1 + \lambda)` paradigm
[Igel2007]_, the mixed integer modification [Hansen2011]_, active
covariance update [Arnold2010]_ and constraint handling [Arnold2012]_.
This version of CMA-ES requires the random vector and the mutation
Expand Down Expand Up @@ -653,7 +653,7 @@ def lambda_(self, value):
self._compute_lambda_parameters()

def _compute_lambda_parameters(self):
"""Computes the parameters depending on :math:`\lambda`. It needs to
r"""Computes the parameters depending on :math:`\lambda`. It needs to
be called again if :math:`\lambda` changes during evolution.
"""
# Step size control :
Expand All @@ -666,7 +666,7 @@ def _compute_lambda_parameters(self):
self.beta = self.params.get("beta", 0.1 / (self.lambda_ * (self.dim + 2.0)))

def generate(self, ind_init):
"""Generate a population of :math:`\lambda` individuals of type
r"""Generate a population of :math:`\lambda` individuals of type
*ind_init* from the current strategy.
:param ind_init: A function object that is able to initialize an
individual from a list.
Expand Down

0 comments on commit 256b6d1

Please sign in to comment.