로딩
요청 처리 중입니다...

sklearn 붓꽃 데이터셋 3. 속성 중요도 시각화

 sklearn 붓꽃 데이터셋 3. 속성 중요도 시각화

model.feature_importances_ # model의 속성 중요도 출력 import matplotlib.pyplot as plt import numpy as np importances = model.feature_importances_ indices_sorted = np.argsort(importances) # 속성 중요도를 정렬 plt.figure() plt.title("Feature importances") plt.bar(range(len(importances)), importances[indices_sorted]) plt.xticks(range(len(importances)), x.columns[indices_sorted], rotation = 90) plt.show()...

sklearn 붓꽃 데이터셋 3. 속성 중요도 시각화에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.

# sklearn # 머신러닝