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
I'm trying to use vowpal porpoise from my Ipython Notebook web interface Running this code:
from vowpal_porpoise import VW vw = VW(vw='vw_new', passes=2, moniker='log_train.vw', loss='logistic') with vw.training(): pass
I get this:
--------------------------------------------------------------------------- UnsupportedOperation Traceback (most recent call last) <ipython-input-7-39be08ecca54> in <module>() 3 moniker='log_train.vw', 4 loss='logistic') ----> 5 with vw.training(): 6 pass /usr/lib/python2.7/contextlib.pyc in __enter__(self) 15 def __enter__(self): 16 try: ---> 17 return self.gen.next() 18 except StopIteration: 19 raise RuntimeError("generator didn't yield") /usr/local/lib/python2.7/dist-packages/vowpal_porpoise-0.3-py2.7.egg/vowpal_porpoise/vw.pyc in training(self) 166 @contextmanager 167 def training(self): --> 168 self.start_training() 169 yield 170 self.close_process() /usr/local/lib/python2.7/dist-packages/vowpal_porpoise-0.3-py2.7.egg/vowpal_porpoise/vw.pyc in start_training(self) 192 193 # Run the actual training --> 194 self.vw_process = self.make_subprocess(self.vw_train_command(cache_file, model_file)) 195 196 # set the instance pusher /usr/local/lib/python2.7/dist-packages/vowpal_porpoise-0.3-py2.7.egg/vowpal_porpoise/vw.pyc in make_subprocess(self, command) 264 stderr.write(command + '\n') 265 self.log.debug('Running command: "%s"' % str(command)) --> 266 result = subprocess.Popen(shlex.split(str(command)), stdin=subprocess.PIPE, stdout=stdout, stderr=stderr, close_fds=True, universal_newlines=True) 267 result.command = command 268 return result /usr/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags) 670 (p2cread, p2cwrite, 671 c2pread, c2pwrite, --> 672 errread, errwrite) = self._get_handles(stdin, stdout, stderr) 673 674 self._execute_child(args, executable, preexec_fn, close_fds, /usr/lib/python2.7/subprocess.pyc in _get_handles(self, stdin, stdout, stderr) 1063 else: 1064 # Assuming file-like object -> 1065 errwrite = stderr.fileno() 1066 1067 return (p2cread, p2cwrite, /usr/local/lib/python2.7/dist-packages/IPython/kernel/zmq/iostream.pyc in fileno(self) 192 193 def fileno(self): --> 194 raise UnsupportedOperation("IOStream has no fileno.") 195 196 def write(self, string): UnsupportedOperation: IOStream has no fileno.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to use vowpal porpoise from my Ipython Notebook web interface
Running this code:
I get this:
The text was updated successfully, but these errors were encountered: