Giter Site home page Giter Site logo

如何解决离散化处理 about gaft HOT 5 OPEN

pytlab avatar pytlab commented on August 10, 2024 1
如何解决离散化处理

from gaft.

Comments (5)

moryKylin avatar moryKylin commented on August 10, 2024 1

我说的离散变量其实不是这样的,虽然说以精度1.0以后来说,有0,1,2,3这些变量,但他其实还是属于连续的,离散的意思是比如[1,2,0,7,9]这样的序列,但是刚想明白了,可以用离散序列的index进行编码,然后再在适应度函数那里处理应该可以解决

from gaft.

PytLab avatar PytLab commented on August 10, 2024

你好,感谢对gaft的支持,其实是可以通过设置适当的精度和范围来进行离散化的变量的,例如取值范围[0.0, 3.0], 精度1.0这样,不过目前gaft对于整除的基因转换存在一个小bug,类似issue#4中提到的,我最近会找个时间把此问题修复,也欢迎pull request。😝

from gaft.

PytLab avatar PytLab commented on August 10, 2024

嗯,你可以使用上面的方法。同时最近我在考虑给gaft的individual定义写个元类,这样就可以用户自定义了,写好了会进行更新。

from gaft.

Asber777 avatar Asber777 commented on August 10, 2024

大佬你好 我发现2D优化的时候 BinaryIndividual(ranges=[(0.0, 50.0), (0.0, 100.0)], eps=1.0)
结果还是会有小数 这个怎么办呢?

from gaft.

moryKylin avatar moryKylin commented on August 10, 2024

emmm,你可以去问大佬,,,我个人认为,你的参数里面都是小数,结果当然也会是小数,可能需要修改大佬的框架 @huoganji

from gaft.

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.