본문 바로가기
IT/머신러닝

[54일차] 04. 결정 트리 ( Decision Trees)

by GWLEE 2022. 9. 6.

plt.figure(figsize=(12,8))
plt.semilogy(data_train.date, data_train.price, color='indigo', linestyle='-', label="Training data")
plt.semilogy(data_test.date, data_test.price, color='red', linestyle='--', label="Test data")
plt.semilogy(ram_prices.date, price_tree, color='brown', linestyle='-.', label="Tree Prediction")
plt.semilogy(ram_prices.date, price_lr, color='green', linestyle=':', label="Linear Prediction")
plt.legend()
plt.show()

'IT > 머신러닝' 카테고리의 다른 글

[54일차] 07. Clustering  (0) 2022.09.07
[54일차] 06. Unsupervised learning  (0) 2022.09.06
[54일차] 05. SVM  (0) 2022.09.06
[54일차] 03. 라소(Lasso)  (0) 2022.09.06
[53일차] 01. Intro / 02. k-NN / 03.Linear  (0) 2022.09.05

댓글