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

Import matplotlib.pyplot in log_feature_importance_plot #2423

Merged
merged 1 commit into from Feb 13, 2020

Conversation

harupy
Copy link
Member

@harupy harupy commented Feb 12, 2020

What changes are proposed in this pull request?

Follow-up for #2386. This PR moves the import statement import matplotlib.pyplot as plt in the log_feature_importance_plot function to prevent XGBoost and LIghtGBM autolog from failing entirely when matplotlib is not installed.

How is this patch tested?

(Details)

Release Notes

Is this a user-facing change?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release notes for MLflow users.

(Details in 1-2 sentences. You can just refer to another PR with a description if this PR is part of a larger change.)

What component(s) does this PR affect?

  • UI
  • CLI
  • API
  • REST-API
  • Examples
  • Docs
  • Tracking
  • Projects
  • Artifacts
  • Models
  • Scoring
  • Serving
  • R
  • Java
  • Python

How should the PR be classified in the release notes? Choose one:

  • rn/breaking-change - The PR will be mentioned in the "Breaking Changes" section
  • rn/none - No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" section
  • rn/feature - A new user-facing feature worth mentioning in the release notes
  • rn/bug-fix - A user-facing bug fix worth mentioning in the release notes
  • rn/documentation - A user-facing documentation change worth mentioning in the release notes

@harupy harupy changed the title Import matplotlib in log_feature_importance_plot Import matplotlib.pyplot in log_feature_importance_plot Feb 12, 2020
@andychow-db
Copy link
Contributor

LGTM!

Wait for @smurching though. I'm still new to all this.

Copy link
Collaborator

@smurching smurching left a comment

Choose a reason for hiding this comment

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

Yep LGTM thanks @harupy & @andychow-db for taking a review!

@smurching smurching merged commit 360c0ca into mlflow:master Feb 13, 2020
@smurching smurching added rn/none List under Small Changes in Changelogs. rn/bug-fix Mention under Bug Fixes in Changelogs. and removed rn/none List under Small Changes in Changelogs. labels Feb 13, 2020
@harupy harupy deleted the follow-up-for-#2386 branch February 13, 2020 01:50
@harupy
Copy link
Member Author

harupy commented Feb 13, 2020

@smurching @andychow-db Thanks!

avflor pushed a commit to avflor/mlflow that referenced this pull request Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn/bug-fix Mention under Bug Fixes in Changelogs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants