5229c0512485bbf06c20bf9c1ce631d3e3c8517e,python-package/mlbox/prediction/predictor.py,Predictor,__plot_feature_importances,#Predictor#Any#Any#,68
Before Change
////// leak detection
leak = sorted(dict(tuples).items(), key=operator.itemgetter(1))[-1]
if((leak[-1]>70)&(len(importance)>1)):
warnings.warn("WARNING : "+str(leak[0])+" is probably a leak ! Please check and delete it...")
else:
pass
After Change
plt.text(x + 1, y,x, va="center")
plt.yticks(ylocs,labels)
plt.title("Top "+str(top)+" feature importance (%)")
plt.grid(True)
plt.show()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: AxeldeRomblay/MLBox
Commit Name: 5229c0512485bbf06c20bf9c1ce631d3e3c8517e
Time: 2017-07-26
Author: axelderomblay@gmail.com
File Name: python-package/mlbox/prediction/predictor.py
Class Name: Predictor
Method Name: __plot_feature_importances
Project Name: biocore/scikit-bio
Commit Name: 694f03f655c1a06259989177ca5ab976ce747e7d
Time: 2014-08-11
Author: ebolyen@gmail.com
File Name: skbio/io/_registry.py
Class Name:
Method Name: read
Project Name: ysig/GraKeL
Commit Name: 1dc5cec3d5aab66576d18f8a9b8090d8b876e0e1
Time: 2018-02-01
Author: y.siglidis@gmail.com
File Name: grakel/kernels/random_walk.py
Class Name: random_walk
Method Name: parse_input