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

Return predict result to user #34

Closed
syt123450 opened this issue Sep 16, 2018 · 2 comments
Closed

Return predict result to user #34

syt123450 opened this issue Sep 16, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@syt123450
Copy link
Member

When user doing predict in tensorspace, tensorspace would pass predict result to user.

@syt123450 syt123450 self-assigned this Sep 16, 2018
@syt123450 syt123450 added the enhancement New feature or request label Sep 16, 2018
@syt123450
Copy link
Member Author

syt123450 commented Sep 16, 2018

two steps:

  • refactor prediction process with predictor
  • add callback for predictor

@syt123450
Copy link
Member Author

Now user can get predict result from callback, use like this:

model.predict(data, function(predictResult) {
    console.log(predictResult);
});

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

No branches or pull requests

1 participant