Skip to content

Commit

Permalink
0.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Aug 28, 2020
1 parent 53301f9 commit 5e75854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion treeplot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

__author__ = 'Erdogan Tasksen'
__email__ = 'erdogant@gmail.com'
__version__ = '0.1.12'
__version__ = '0.1.13'

# module level doc-string
__doc__ = """
Expand Down
6 changes: 3 additions & 3 deletions treeplot/treeplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ def plot(model, featnames=None, num_trees=None, plottype='horizontal', figsize=(
Figure axis of the input model.
"""
modelname = str(model).lower()
modelname = str(model).lower()[0:30]
if ('xgb' in modelname):
if verbose>=4: print('xgboost plotting pipeline.')
ax = xgboost(model, featnames=featnames, num_trees=num_trees, figsize=figsize, plottype=plottype, verbose=verbose)
elif ('lgb' in modelname):
ax = lgbm(model, featnames=featnames, num_trees=num_trees, figsize=figsize, verbose=verbose)
elif ('tree' in modelname) or ('forest' in modelname) or ('gradientboosting' in modelname):
if verbose>=4: print('tree plotting pipeline.')
ax = randomforest(model, featnames=featnames, num_trees=num_trees, figsize=figsize, verbose=verbose)
elif ('lgb' in modelname):
ax = lgbm(model, featnames=featnames, num_trees=num_trees, figsize=figsize, verbose=verbose)
else:
print('[treeplot] >Model not recognized: %s' %(modelname))
ax = None
Expand Down

0 comments on commit 5e75854

Please # to comment.