-
Notifications
You must be signed in to change notification settings - Fork 2
Pass object to update predictor
#43
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
Conversation
yuki-mt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keigohtr
I figured out what is wrong, but this solution (and current situation) has very implicit dependency between RekcurdDashboardServicer and RekcurdWorkerServicer, which may make it difficult to read the code.
What about adding setter of predictor to RekcurdWorkerServicer and call it in RekcurdDashboardServicer?
|
@yuki-mt And, adding one servicer to another is weird for me since it seems they are parent-child relationship. Using a pointer and sharing variables is not strange implementation I think. But we can create a class and use it instead of list is a good idea I think. |
DashbaordServicer affects WorkerServicer in fact, so this is not weird to me, but
I agree with it.
I also agree with it. It looks better. |
|
@yuki-mt I have updated. Could you review this again please? |
Codecov Report
@@ Coverage Diff @@
## master #43 +/- ##
==========================================
+ Coverage 88.05% 88.06% +<.01%
==========================================
Files 15 15
Lines 854 863 +9
==========================================
+ Hits 752 760 +8
- Misses 102 103 +1
Continue to review full report at Codecov.
|
yuki-mt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is this PR for?
When we switch model, it does not work.
This is because the current code updates a local variable. So I changed to use a list object to update
predictorobject.This PR includes
listas inputWhat type of PR is it?
Bugfix
What is the issue?
N/A
How should this be tested?