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

how to predict with the model #7

Open
szq261299 opened this issue Jan 3, 2020 · 1 comment
Open

how to predict with the model #7

szq261299 opened this issue Jan 3, 2020 · 1 comment

Comments

@szq261299
Copy link

The code shows how to train and evaluate model ,but there seems is not enough information to predict with this model.

@gabrielspmoreira
Copy link
Owner

Hi. Sorry for the late response. You are right. In the current implementation the Candidate Sampling generation and the features retrieval for negative samples occurs within the train / eval loop. To be able to provide predictions (e.g. deploying this model in production), it would be necessary to move the candidate sampling outside the train/eval loop, and the model would receive the features for both positive and negative samples as input, and would output the predicted scores for each of the negative samples.
I have been drafted that implementation, and was able to deploy the CHAMELEON on TF Serving. But need to clean that code before pushing to this repo, as it required a major refactory.

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

No branches or pull requests

2 participants