郭飞
郭飞
> https://github.com/guofei9987/scikit-opt/blob/b1f147af996f9839b7c107c17a8dd8c7098cdef0/sko/operators/ranking.py#L19 > > , 请问这行代码是不是有点问题: “np.argsort(np.argsort(-self.Y))”? np.argsort()已经是对最后一维排序了,为什么需要再次np.argsort,感觉多余,是不是应该修改成 np.argsort(-self.Y) > 还有一个小的建议,如 > > https://github.com/guofei9987/scikit-opt/blob/b1f147af996f9839b7c107c17a8dd8c7098cdef0/sko/operators/crossover.py#L7 > > 既然“Chrom, size_pop, len_chrom = self.Chrom, self.size_pop, self.len_chrom”,后面的代码再使用"self.Chrom”, “self.size_pop”, “self.len_chrom“时建议统一改成"Chrom”, “size_pop”, “len_chrom“,而代码中有时使用带self的变量,有时使用不带self的变量,感觉有点怪怪的 两个 np.argsort 不多余。...
我没有这个环境,能否帮忙看一下 `sys.platform` 返回的是什么吗?
https://github.com/guofei9987/scikit-opt/blob/master/examples/demo_ga.py 案例都是多元函数
selection: tournament crossover: 2 point
Write a UDF like this:https://github.com/guofei9987/scikit-opt/blob/master/examples/demo_ga_udf.py Perhaps we will provide a udf with elitism next version.
目前的开发版已经可以设置上下界了: https://github.com/guofei9987/scikit-opt/blob/master/examples/demo_sa.py SA目前只支持连续变量
Maybe next version😄
有一些论文,实现过都不太好。
New feature needed. pls wait for the next version.