Skip to content

Test "training" case fail in active mode #10

@MrMathias

Description

@MrMathias

Traceback (most recent call last):
File "test_wabbit_wappa.py", line 146, in
training()
File "test_wabbit_wappa.py", line 73, in training
('b', -1 - random.random())]
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/wabbit_wappa/init.py", line 290, in send_example
result = self.send_line(line, parse_result=parse_result)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/wabbit_wappa/init.py", line 259, in send_line
self.vw_process.sendline(line) # Send line, along with newline
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/wabbit_wappa/active_learner.py", line 64, in sendline
self.sock.sendall(line)
BrokenPipeError: [Errno 32] Broken pipe

command arg. activer_learning should just be active

self.vw_process = pexpect.spawn(command)
active_learner.py line 47
should spawn a process, but nothing happens: using command in terminal work as intended

Adding time.sleep(5) right after self.vw_process = pexpect.spawn(command) solves the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions