We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报错信息为: 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'
The text was updated successfully, but these errors were encountered:
经检查为PSO.py中PSO_TSP类__init__函数中(212行)未对n_processes做初始化,修改为n_processes=0
Sorry, something went wrong.
No branches or pull requests
报错信息为:
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'
The text was updated successfully, but these errors were encountered: