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

Add a online_predict() API for streaming input #28

Open
wq2012 opened this issue Jan 29, 2019 · 3 comments
Open

Add a online_predict() API for streaming input #28

wq2012 opened this issue Jan 29, 2019 · 3 comments
Labels
API Feature request that requires API change enhancement New feature or request

Comments

@wq2012
Copy link
Member

wq2012 commented Jan 29, 2019

UIS-RNN is an online algorithm, but the current predict() API of this library is not.

If people want to deploy this library to a production environment for online use cases, an online_predict() API is going to be necessary.

Its usage should be like this:

# Feed the first sequence, and continuously make use of the label.
label = model.online_predict(X1)
label = model.online_predict(X2)
label = model.online_predict(X3)
model.online_predict(reset=True)
# Feed the second sequence, and continuously make use of the label.
label = model.online_predict(Y1)
label = model.online_predict(Y2)
label = model.online_predict(Y3)
label = model.online_predict(Y4)
model.online_predict(reset=True)

However, we may not have the bandwidth to work on this any time soon.

@sukhbirsinghsaini
Copy link

Any update on this?

@wq2012
Copy link
Member Author

wq2012 commented Jan 6, 2020

Unfortunately, as several core members have left the team, we won't be able to work on this ourselves.

But if someone wants to work on this, he/she can create a subclass of UISRNN under the contrib directory. We would welcome that.

@hbo-lambda
Copy link

UIS-RNN is an online algorithm, but the current predict() API of this library is not.

If people want to deploy this library to a production environment for online use cases, an online_predict() API is going to be necessary.

Its usage should be like this:

# Feed the first sequence, and continuously make use of the label.
label = model.online_predict(X1)
label = model.online_predict(X2)
label = model.online_predict(X3)
model.online_predict(reset=True)
# Feed the second sequence, and continuously make use of the label.
label = model.online_predict(Y1)
label = model.online_predict(Y2)
label = model.online_predict(Y3)
label = model.online_predict(Y4)
model.online_predict(reset=True)

However, we may not have the bandwidth to work on this any time soon.

can you give some ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Feature request that requires API change enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants