guofei9987 / guofei9987/scikit-opt
demo_pso_tsp.py运行有误
Open
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
报错信息为:
invalid escape sequence '\h'
Traceback (most recent call last):
File "D:\Programs\OA\scikit-opt\examples\demo_pso_tsp.py", line 25, in
pso_tsp = PSO_TSP(func=cal_total_distance, n_dim=num_points, size_pop=200, max_iter=800, w=0.8, c1=0.1, c2=0.1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Programs\OA\scikit-opt\sko\PSO.py", line 212, in __init__
self.func = func_transformer(func)
^^^^^^^^^^^^^^^^^^^^^^
TypeError: func_transformer() missing 1 required positional argument: 'n_processes'
Contributor guide
Assessment
This issue has not been assessed yet.