-
Notifications
You must be signed in to change notification settings - Fork 443
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
Refactor suggestion services folder structure #1166
Refactor suggestion services folder structure #1166
Conversation
/assign @johnugeorge @gaocegege |
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.
Thank you for your work!
It might be better to rename files like:
suggestion/chocolate/chocolate_service.py
->suggestion/chocolate/service.py
suggestion/hyperband/hyperbad_service.py
->suggestion/hyperbad/service.py
suggestion/skopt/skopt_service.py
->suggestion/skopt/service.py
- ...
But I have no strong opinion about this. And we can work on it in another pull request.
/lgtm
Good point. I will rename it. |
Yeah, agree. |
/lgtm |
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.
/approve
I think we do not need it.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Refactor suggestion services folder structure * Move base health service to internal * Rename service and base service files
Fixes: #1144.
I moved all
<algorithm_name>_service.py
files to appropriate suggestion folder.I added
__init__.py
file to each suggestion folder, since we import them incmd/
.I made absolute path in all python files. For example: https://github.com/kubeflow/katib/compare/master...andreyvelich:issue-1144-suggestion-folder-structure?expand=1#diff-fe0ee80956c02a4ffe8ecf4881b2e40cR6. To be consistent between imports.
I moved
base_health_service
tointernal
folder.I deleted
pkg/suggestion/test_requirements.txt
file. @gaocegege Do we need this file? I didn't find any usage of this file.