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

Set _evals_result so that lgb.plot_metric can be used #77

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Y-oHr-N
Copy link
Owner

@Y-oHr-N Y-oHr-N commented Apr 18, 2020

This PR closes #75.

@codecov-io
Copy link

codecov-io commented Apr 18, 2020

Codecov Report

Merging #77 into master will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
+ Coverage   96.27%   96.33%   +0.05%     
==========================================
  Files           8        8              
  Lines         564      573       +9     
==========================================
+ Hits          543      552       +9     
  Misses         21       21              
Impacted Files Coverage Δ
optgbm/sklearn.py 96.44% <100.00%> (+0.05%) ⬆️
tests/test_sklearn.py 99.44% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 315fc1b...6cf921e. Read the comment docs.

@Y-oHr-N
Copy link
Owner Author

Y-oHr-N commented Apr 18, 2020

import optgbm as lgb
from matplotlib import pyplot as plt
from sklearn.datasets import load_iris

X, y = load_iris(return_X_y=True)
clf = lgb.LGBMClassifier(random_state=0)

clf.fit(X, y)

lgb.plot_metric(clf)

plt.show()

Figure_1

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.

Set _evals_result so that lgb.plot_metric can be used
2 participants