Skip to content
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

wip: all the 20 plus PRs in one commit #226

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HarikrishnanBalagopal
Copy link
Contributor

Description of the change

Related issue number

How to verify the PR

Was the PR tested

  • I have added >=1 unit test(s) for every new method I have added.
  • I have ensured all unit tests pass

Copy link
Collaborator

@ashokponkumar ashokponkumar left a comment

Choose a reason for hiding this comment

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

Added some comments. Please incorporate them when you split the PR.

Comment on lines +444 to +465
kwargs["args"] = args
kwargs["state"] = state
kwargs["control"] = control
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to construct a new kwargs for this? Isn't just passing them in _actions_on_event just enough?

Comment on lines +43 to +52
"on_step_end",
"on_epoch_begin",
"on_epoch_end",
"on_prediction_step",
"on_predict",
"on_log",
"on_train_end",
"on_train_begin",
"on_evaluate",
"on_save",
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't doing this only on on_init_end sufficient?

logger = logging.get_logger(__name__)
logger.setLevel(level=logging.DEBUG)

VALID_LOG_LEVELS = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comment on lines +58 to +65
if self.log_level == logging.ERROR:
logger.error(log_msg)
elif self.log_level == logging.WARNING:
logger.warning(log_msg)
elif self.log_level == logging.INFO:
logger.info(log_msg)
elif self.log_level == logging.DEBUG:
logger.debug(log_msg)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Signed-off-by: Harikrishnan Balagopal <[email protected]>
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.

2 participants