-
Notifications
You must be signed in to change notification settings - Fork 448
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 GRPC/rest API to return best suggestion trial result #305
Comments
@YujiOshima @richardsliu Any comment? |
/assign |
Isn't this a very resource intensive process? we need get all metric logs of all workers to compute it. Is there a better way? |
@johnugeorge In fact, all trial info had been stored in DB. It just need return the best trials by querying DB. No need to get all metric logs of all workers to compute it again when run this API. |
Yes. I was asking if this db query would span across all metric logs of all workers of this study. Currently, are we storing the best values of each trial in DB now? Please correct me if I am wrong. |
only get trial in DB once. we can get the best trail ID from studyJob spec (the trail's worker counterpart objectiveValue equal to the studyJob's best objectiveValue) |
We can add bestTrialId in studyjob.status and user can get the trial detail by calling GetTrial gRPC api |
An API to get the best N trials and workers is so useful. But as @johnugeorge said, scanning all metrics logs is so heavy. |
Sorry for late response because of holidays. While digging deep, I saw one assumption in the current code. Adding the max and min value of objective value in DB also solves this problem. |
After a studyJob completed, we need expose API to get best suggestion trial result so that 3rd-party can use the result to train model.
The text was updated successfully, but these errors were encountered: