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

Revise the logging functionality and add log about tensorboard #2859

Merged
merged 38 commits into from
Feb 10, 2023

Conversation

sxjscience
Copy link
Collaborator

Issue #, if available:

#2049

Description of changes:

  • Improve logging to mention the usage of tensorboard:

When the training just started:

Start training!! The model file will be saved to /home/ubuntu/workspace/AutogluonModels/ag-20230207_080957. The validation metric is "pearsonr". To inspect the learning process, you can launch a tensorboard environment via the following command:

```shell
tensorboard --logdir /home/ubuntu/workspace/AutogluonModels/ag-20230207_080957
```

When the training completed:

Training finished!! Models and intermediate outputs are saved to /home/ubuntu/workspace/AutogluonModels/ag-20230207_080957. 

To load the trained predictor, use the following code 

```python
from autogluon.multimodal import MultiModalPredictor

predictor = MultiModalPredictor.load("/home/ubuntu/workspace/AutogluonModels/ag-20230207_080957")
```

To track the training process, you can launch a tensorboard

```shell
tensorboard --logdir /home/ubuntu/workspace/AutogluonModels/ag-20230207_080957
```

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link

github-actions bot commented Feb 7, 2023

Job PR-2859-23a6d96 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/23a6d96/index.html

Copy link
Contributor

@bryanyzhu bryanyzhu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for improving the logging functionality.

multimodal/src/autogluon/multimodal/utils/log.py Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Feb 7, 2023

Job PR-2859-9da3486 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/9da3486/index.html

@github-actions
Copy link

github-actions bot commented Feb 7, 2023

Job PR-2859-2d3404f is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/2d3404f/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-c6a1815 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/c6a1815/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-704fc28 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/704fc28/index.html

multimodal/src/autogluon/multimodal/utils/log.py Outdated Show resolved Hide resolved
multimodal/src/autogluon/multimodal/utils/log.py Outdated Show resolved Hide resolved
multimodal/src/autogluon/multimodal/utils/log.py Outdated Show resolved Hide resolved
logger.info(f"Models and intermediate outputs are saved to {self._save_path} ")

# TODO(?) We should have a separate "_post_training_event()" for logging messages.
logger.info(get_fit_complete_message(self._save_path))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is info shown by default or only if the user increases verbosity? In what situation will the user see the new logs added in this PR?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's shown by default (verbosity=2,3).

Copy link
Contributor

Choose a reason for hiding this comment

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

@Innixma Our logger seems to have a bug. Setting verbosity=4 doesn't print the messages in logger.debug().

Copy link
Contributor

Choose a reason for hiding this comment

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

@zhiqiangdon Can you create a GitHub issue with a minimal reproducible example with the logger in isolation?

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-1ea20ad is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/1ea20ad/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-afbb31e is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/afbb31e/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-a1a29e9 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/a1a29e9/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-f983589 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/f983589/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-c710935 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/c710935/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-28ef00d is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/28ef00d/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-4b680d6 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/4b680d6/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-62f34e9 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/62f34e9/index.html

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Job PR-2859-5308445 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/5308445/index.html

Copy link
Contributor

@Innixma Innixma left a comment

Choose a reason for hiding this comment

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

LGTM! We can probably do any remaining cleanup of logging during code freeze for minor changes

@github-actions
Copy link

github-actions bot commented Feb 9, 2023

Job PR-2859-f1821db is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/f1821db/index.html

@github-actions
Copy link

Job PR-2859-c93ad31 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2859/c93ad31/index.html

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.

None yet

4 participants