Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fig, ax = plt.subplots()
- labels = ('season', 'yr', 'hr', 'holiday', 'weekday', 'workingday', 'weathershit', 'temp', 'hum', 'windspeed', 'registered')
- lens = np.array(clf.coef_)
- ax.barh(np.arange(len(lens)), lens, align='center', color='green', ecolor='black')
- ax.set_yticklabels(labels)
- plt.show()
- clf.coef_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement