#100DaysOfCode의 90일차: 과적합 및 과소적합

오늘은 #100daysofcode 및 #python 학습 여정의 90일째입니다. 3월 29일은 GitHub에 추진하는 프로젝트를 위한 블로그를 작성하며 기절합니다. 임의의 작업을 수행했습니다.

그리고 하루가 끝나면 과대적합 및 과소적합 주제와 훈련 테스트 분할에 관한 Datacamp의 지식을 파악합니다. 이미지 인식 코드를 따라가는 것이 정말 즐겁습니다.

암호




# Import necessary modules
from sklearn import datasets
import matplotlib.pyplot as plt
# Load the digits dataset: digits
digits = datasets.load_digits()
# Print the keys and DESCR of the dataset
# Print the shape of the images and data keys
print(digits.keys())
print(digits.DESCR)
print(digits.images.shape)
print(digits.data.shape)




# Display digit 1010
plt.imshow(digits.images[1010], cmap=plt.cm.gray_r, interpolation='nearest')
plt.show()




위 코드의 출력은,



https://t.co/iA9NKAytnl DataCamppic.twitter.com/2DVFtvfN8q — Durga Pokharel(@durgacodes)

좋은 웹페이지 즐겨찾기