Git Product home page Git Product logo

Comments (8)

d-nagata avatar d-nagata commented on June 25, 2024 1

Sorry, I understand!!(sort of solutions is ascending, but the paper was descending.)
Thank you for your detailed expranation!!

from cmaes.

d-nagata avatar d-nagata commented on June 25, 2024

@nomuramasahir0
I apologize, but would it be possible to answer this question?

from cmaes.

nomuramasahir0 avatar nomuramasahir0 commented on June 25, 2024

Hi @ikalemmon ,

Thank you for the question. The change of maximization and minimization is absorbed by the utility function (u in the original paper). By fitness shaping,

  • In the original xNES paper, u_i <= f(x_i) / n, as it focuses on maximization
  • In our implementation, u_i <= - f(x_i) / n, as it focuses on minimization

from cmaes.

d-nagata avatar d-nagata commented on June 25, 2024

@nomuramasahir0
Thank you for your answer.
But I'm still confused...

I think the implementation of u is here

cmaes/cmaes/_xnes.py

Lines 91 to 101 in 91bcaca

w_hat = np.log(population_size / 2 + 1) - np.log(
np.arange(1, population_size + 1)
)
w_hat[np.where(w_hat < 0)] = 0
weights = w_hat / sum(w_hat) - (1.0 / population_size)
self._n_dim = n_dim
self._popsize = population_size
# weights
self._weights = weights

I can't find the change from the paper in that code...
image

from cmaes.

nomuramasahir0 avatar nomuramasahir0 commented on June 25, 2024

Fitness shaping replaces the function value (more concretely, f(x_i) / n in the original xNES paper, or -f(x_i) / n in our implementation) with u_i.
The original xNES paper and our implementation set u_i to the one you provided.

from cmaes.

nomuramasahir0 avatar nomuramasahir0 commented on June 25, 2024

As for the fitness shaping, for example, please see the NES tutorial slide, pp.23.

from cmaes.

d-nagata avatar d-nagata commented on June 25, 2024

@nomuramasahir0
thanks, I checked it!
Could you show me the relevant part of the code in _xnes.py?

from cmaes.

nomuramasahir0 avatar nomuramasahir0 commented on June 25, 2024

Sure!

from cmaes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.