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

Hitl dashbaord model viz improve #1333

Open
wants to merge 19 commits into
base: hitl_dashboard_model_mng_fe
Choose a base branch
from

Conversation

mialsy
Copy link
Contributor

@mialsy mialsy commented Aug 5, 2022

Description

  • Update frontend/backend support for visualizing the model:
    - Based on @ethan-carlson 's suggestion, changed from showing loss and accuracy of validation and text_span to showing loss and accuracy separately; and show training loss/accuracy & validation loss/accuracy in the same graph.
    - Updated the graph visualization container to be responsive to browser window changes.
  • Added new API to get batch ids for runs that has the models need to be visualized in a pipeline.

Type of change

Please check the options that are relevant.

  • Bug fix (non-breaking change that fixes an issue)
  • Proposes a change (non-breaking change that isn't necessarily a bug)
  • Refactor
  • New feature (non-breaking change that adds a new functionality)
  • Breaking change (fix or feature that would break some existing functionality downstream)
  • This is a unit test
  • Documentation only change
  • Datasets Release
  • Models Release

Type of requested review

  • I want a thorough review of the implementation.
  • I want a high level review.
  • I want a deep design review.

Before and After

API changes:

  • get_best_model_loss_acc_by_id
    • Before: this API returns model loss and accuracy for validation and the text_span.
    • After: returns loss and accuracy for validation and training.

Added new API:

  • get_best_model_bids_by_pipeline
    • get best models' batch ids for a specific pipeline
    • input:
      • pipeline name (can be nlu, tao or vision)
    • output:
      • a list of the batch ids of the best models

Demo:

  • Demo:
    - Best models loss & accuracy for a pipeline:
    - demo_best_models_for_pipeline
    - Best model in a run (showing loss and accuracy seperately, graph responsive to browser window changes):
    - demo_best_model_for_a_run

Testing

Manually tested.

Checklist:

  • I have performed manual end-to-end testing of the feature in my environment.
  • I have added Docstrings and comments to the code.
  • I have made changes to existing documentation where needed.
  • I have added tests that show that the PR is functional.
  • New and existing unit tests pass locally with my changes.
  • I have added relevant collaborators to review the PR before merge.
  • [Polymetis only] I ran on hardware (1) all scripts in tests/scripts, (2) asv benchmarks.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 5, 2022
Copy link
Contributor

@ethan-carlson ethan-carlson left a comment

Choose a reason for hiding this comment

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

This looks great, thank you!

One small nit - could we move the hard coded styling parameters to be constants listed at the top of the file? Or a stylesheet if used multiple places.

@mialsy
Copy link
Contributor Author

mialsy commented Aug 18, 2022

Updated model visualization based on @snyxan 's comment, can I get review for this again?
demo_model_viz_update

@facebook-github-bot
Copy link

Hi @mialsy!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants