I am having peculiar error when using a custom teach
method. I am not entirely sure if Prodigy is the problem.
My custom teach
methods returns from a __call__
method with a (score, task)
tuple.
I’m actually using a sklearn model and partial_fit
method to update
. I wasn’t sure what to return in the Model.update
method. The README says to return a dictionary but that gives me an error as well.
Thanks
OverflowError: Maximum recursion level reached
Exception when serving /give_answers
Traceback (most recent call last):
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/waitress/channel.py", line 338, in service
task.service()
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/waitress/task.py", line 169, in service
self.execute()
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/waitress/task.py", line 399, in execute
app_iter = self.channel.server.application(env, start_response)
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/hug/api.py", line 421, in api_auto_instantiate
return module.__hug_wsgi__(*args, **kwargs)
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/falcon/api.py", line 242, in __call__
responder(req, resp, **params)
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/hug/interface.py", line 692, in __call__
self.render_content(self.call_function(input_parameters), request, response, **kwargs)
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/hug/interface.py", line 633, in call_function
return self.interface(**parameters)
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/hug/interface.py", line 99, in __call__
return __hug_internal_self._function(*args, **kwargs)
File "/Users/apewu/writelab/aes/venv/lib/python3.6/site-packages/prodigy/app.py", line 66, in give_answers
controller.receive_answers(answers)
File "cython_src/prodigy/core.pyx", line 78, in prodigy.core.Controller.receive_answers
File "cython_src/prodigy/components/db.pyx", line 183, in prodigy.components.db.Database.add_examples
File "cython_src/prodigy/components/db.pyx", line 188, in prodigy.components.db.Database.add_examples
OverflowError: Maximum recursion level reached
Using Prodigy 0.4, Python 3.6.3, spaCy 2.0.0a17.