Skip to content

Add a online_predict() API for streaming input #28

@wq2012

Description

@wq2012

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIFeature request that requires API changeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions