Skip to content

Conversation

@ravinkohli
Copy link
Collaborator

  1. Moved to warn user not error for unexpected update

"This update {} will be removed".format(node.__class__.__name__,
components.keys(), choice, update),
UserWarning)
self.search_space_updates.updates.remove(update)
Copy link
Owner

Choose a reason for hiding this comment

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

Can you call the remove outside of the foreach loop? Like I don't think it is a good idea to update the list while iterating on it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

okay, I'll do so

"This update {} will be removed".format(node.__class__.__name__,
components.keys(), split_hyperparameter[0],
update), UserWarning)
self.search_space_updates.updates.remove(update)
Copy link
Owner

Choose a reason for hiding this comment

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

same here

if split_hyperparameter[1] not in component. \
get_hyperparameter_search_space(dataset_properties=self.dataset_properties):
if split_hyperparameter[1] not in \
component.get_hyperparameter_search_space(dataset_properties=self.dataset_properties):
Copy link
Owner

Choose a reason for hiding this comment

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

can you put the new line after the parenthesis?

component.get_hyperparameter_search_space(
dataset_properties=self.dataset_properties).get_hyperparameter_names(),
split_hyperparameter[1], update), UserWarning)
self.search_space_updates.updates.remove(update)
Copy link
Owner

Choose a reason for hiding this comment

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

same here

if update.hyperparameter not in node.get_hyperparameter_search_space(
dataset_properties=self.dataset_properties):
if update.hyperparameter not in \
node.get_hyperparameter_search_space(dataset_properties=self.dataset_properties):
Copy link
Owner

Choose a reason for hiding this comment

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

same here

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

Successfully merging this pull request may close these issues.

3 participants