- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Pypi 说 there is a new version on their website .
pip search
告诉我我有一个旧版本,并且有一个新版本。
(Canopy 64bit) Johns-iMac:~ john$ pip search deap
deap - Distributed Evolutionary Algorithms in Python
INSTALLED: 1.0.1
LATEST: 1.0.2
但是 pip install -U
以及所有覆盖表示没有新版本。
(Canopy 64bit) Johns-iMac:~ john$ pip install -U --allow-unverified --allow-external deap==1.0.2
Collecting deap==1.0.2
Could not find a version that satisfies the requirement deap==1.0.2 (from versions: 0.9.1, 0.9.2, 1.0.0rc3, 1.0.0, 1.0.1)
No distributions matching the version for deap==1.0.2
我忽略了哪些愚蠢的细节?
最佳答案
我也有同样的行为。如果您不一定需要稳定版本,您可以从主存储库 https://github.com/DEAP/deap 安装
pip install git+https://github.com/DEAP/deap
pip search deap
deap - Distributed Evolutionary Algorithms in Python
INSTALLED: 1.1.0
LATEST: 1.0.2
关于python - 为什么pip无法安装最新版本的deap?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29358696/
我正在运行一个遗传算法程序,可以在运行结束时找到最好的个体(hof[0]),但我想知道是哪一代产生的。是否有任何 hof[0] 属性可以帮助打印个人和创建它的一代。 我试着查看手册和谷歌寻找答案,但在
我正在使用通过 Python 的 DEAP 库实现的遗传算法。为了避免过早收敛,并强制探索特征空间,我希望第一代的变异概率很高。但是为了防止一旦它们被识别就偏离极值,我希望最后几代的突变概率更低。我如
我刚刚开始使用 DEAP。之前我用的是基于Matlab的GA,交叉变异后就是选择指定大小的较好个体,然后更新种群。但是我很难理解为什么在 DEAP 中,在交叉和变异过程之后需要评估具有无效适应度的个体
有没有什么方法可以使用 DEAP 来实现适应度共享/生态位选择? ?具体来说,我正在寻找定义的方法的实现 here (Goldberg 的健身分享)在 pdf 的第 98 页。如果您知道 DEAP 中
我想在适应度没有增加时停止遗传算法。 我在 python 中使用 DEAP 库。 通常,我有以下日志文件: gen nevals mean max 0
我正在与 DEAP 合作开发遗传算法。我在日志中得到了一些结果。日志的形状类似于字典的附录,如下所示。 {"gen": 0, "nevals": 200, "avg": 5678.1246563625
我正在尝试使用带有 DEAP 的遗传算法来解决与背包问题没有太大区别的优化问题。染色体由整数向量表示,约束是向量的总和必须等于某个数字 X。在适应度评估中处理这个问题似乎效率低下,因为交叉/突变相对较
我正在使用 DEAP 对数据表进行符号回归,即找到最适合数据的函数。不幸的是,我找不到以人类可读格式获取结果的方法。例如,如果我这样做 best_ind = tools.selBest(pop, 1)
我正在尝试将个人(gp 程序)转换为 python 代码。但是,当我调用 evaluate() 时出现错误,我不确定如何修复。我正在解决 symbolic regression问题,这些是我的原语。
我正在使用 DEAP 库来最大化一个指标,我注意到每当我重新启动算法(它应该创建一个随机的二进制值列表 - 1 和 0)时,它都会产生相同的初始值。 我开始怀疑并复制了他们的 basic DEAP e
我需要使用遗传算法和 PSO 最小化函数。 不同帖子建议使用DEAP (我正在使用 python)但我什至不知道如何开始。 我们可以考虑例如区间 i 上的 f i=arange(-10,10,0.1)
我有一个人具有以下基因: genes = [8, 2, 300, 2, 25, 10, -64, -61] 然后我应用以下高斯突变: toolbox.register("mutate", tools.
我在Python中使用DEAP并在那里使用遗传算法。以下是大小为100的属性(染色体)的定义。 toolbox.register("attr_bool", random.randint, 0, 1)
我在 python 中使用 DEAP 库来解决多目标优化问题。我想为此任务使用多个处理器;但是,我遇到了一些麻烦。 为了提供一些背景信息,我将 networkx 与 DEAP 结合使用我还定义了适应度
在 DEAP 算法 ( see documentation here ) 中,我注意到我们需要指定代数 (NGEN)。有人告诉我,如果帕累托曲线是平滑的,就可以实现收敛。 可以通过在统计数据中指定“平
我正在使用 DEAP 编写我的第一个进化算法。一切正常,但 MultiFlipBit 变异运算符除外。当我尝试改变树(个体)时,出现以下错误: File "Genetic_Programming.py
我有一个包含 2 个属性的列表,即成本和评级。我需要找到成本较低且评级较高的最佳航类。这是一个具有最小化和最大化目标的多对象优化问题。我如何在 DEAP 中实现这一点? 由于我对 DEAP 很陌生,所
使用了一段时间的遗传算法DEAP包。 我知道套路并得到了一些有效的结果。 但我想知道群体间适应度函数的变化。 使用stats 函数,我可以打印均值、标准差等作为输出。 手册上说logbook是用来保存
对于我正在从事的项目,我在 DEAP 中设置了 3 个不同的目标作为优化目标,an evolution framework based on Python . 它可以使用像NSGA-II这样的算法来处
我正在使用 Python 中的 DEAP 包编写一个程序,用于使用进化算法(特别是遗传算法)进行优化。 我需要在 python 中使用列表类型来创建染色体。这条染色体应该有五个不同范围的 float
我是一名优秀的程序员,十分优秀!