Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[refactor] Address the Issue#148 and clean _search() function#165

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
nabenabe0928 wants to merge10 commits intoautoml:master
base:master
Choose a base branch
Loading
fromnabenabe0928:refactor_basetask

Conversation

@nabenabe0928
Copy link
Collaborator

For more details, see#148.

Since the readability of the function was quite bad,I separated the processing.I mostly copied and pasted the original processing andchecked if we can run some examples.
@nabenabe0928nabenabe0928 changed the base branch frommaster torefactor_developmentApril 12, 2021 16:00
self._stopwatch.stop_task(dummy_task_name)

def_run_traditional_ml(self)->None:
"""We would like to obtain training time for at least 1 Neural network in SMAC"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

could you move this comment to line 706?


returnbudget_config

def_start_smac(self,proc_smac:AutoMLSMBO)->None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think its fine if we have this function inside _run_smac. Having two functions makes it a bit confusing.

self.run_history:RunHistory=RunHistory()
self.trajectory:Optional[List]=None
self.dataset_name:Optional[str]=None
self.dataset_name:str=""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why do you want to have it as an empty string?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Okay, I see that it was suggested by Francisco in a previous PR. I suggest you to not make the same changes in different PR. Let merge#106 first and then we can rebase to include this change. It makes it confusing to review the same changes in different places.

Copy link
Contributor

@ravinkohliravinkohli left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hey, Thanks for the PR. While I agree with dividing _search into smaller functions. Do you think too many functions have been created now? I feel if you could merge the functions that are doing one thing for example _do_traditional_predictions can be merged into _run_traditional_ml and same for dummy, and smac it would make it much easier to understand whats going on in the code. And while you are making these functions, it would be great to also add documentation for each one. as well as keeping the comments that were there before each process for example=====> Run dummy, etc. Also, I think its better if we keep the _search_settings a part of the search function.

@franchuteriverafranchuterivera changed the base branch fromrefactor_development todevelopmentMay 7, 2021 09:01
@nabenabe0928nabenabe0928 marked this pull request as draftMay 20, 2021 14:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@ravinkohliravinkohliravinkohli requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@nabenabe0928@ravinkohli

[8]ページ先頭

©2009-2025 Movatter.jp