Skip to content
Snippets Groups Projects
Commit cbb28111 authored by Tor Myklebust's avatar Tor Myklebust
Browse files

Release JVM reference to the ALSModel when done.

parent 20f85eca
No related branches found
No related tags found
No related merge requests found
......@@ -357,8 +357,8 @@ class ALSModel(object):
self._context = sc
self._java_model = java_model
#def __del__(self):
#self._gateway.detach(self._java_model)
def __del__(self):
self._context._gateway.detach(self._java_model)
def predict(self, user, product):
return self._java_model.predict(user, product)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment