Skip to content
New issue

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

Cannot pickle exception #33

Open
KOLANICH opened this issue Aug 17, 2018 · 0 comments
Open

Cannot pickle exception #33

KOLANICH opened this issue Aug 17, 2018 · 0 comments

Comments

@KOLANICH
Copy link
Contributor

  File "******\Anaconda3\lib\site-packages\yabox\algorithms\de.py", line 183, in solve
    for step in iterator:
  File "******\Anaconda3\lib\site-packages\yabox\algorithms\de.py", line 211, in iterator
    it = PDEIterator(self)
  File "******\Anaconda3\lib\site-packages\yabox\algorithms\de.py", line 70, in __init__
    super().__init__(de)
  File "******\Anaconda3\lib\site-packages\yabox\algorithms\de.py", line 9, in __init__
    self.fitness = de.evaluate(self.population)
  File "******\Anaconda3\lib\site-packages\yabox\algorithms\de.py", line 161, in evaluate
    return self.evaluate_denormalized(PD)
  File "******\Anaconda3\lib\site-packages\yabox\algorithms\de.py", line 221, in evaluate_denormalized
    return list(self.pool.map(self.fobj, PD, chunksize=self.chunksize))
  File "******\Anaconda3\lib\multiprocessing\pool.py", line 266, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "******\Anaconda3\lib\multiprocessing\pool.py", line 644, in get
    raise self._value
  File "******\Anaconda3\lib\multiprocessing\pool.py", line 424, in _handle_tasks
    put(task)
  File "******\Anaconda3\lib\multiprocessing\connection.py", line 206, in send
    self._send_bytes(_ForkingPickler.dumps(obj))
  File "******\Anaconda3\lib\multiprocessing\reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
AttributeError: Can't pickle local object 'Yabox.invokeScoring.<locals>.yaboxScore'

==========================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant