#100DaysOfCode의 90일차: 과적합 및 과소적합
그리고 하루가 끝나면 과대적합 및 과소적합 주제와 훈련 테스트 분할에 관한 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)
Reference
이 문제에 관하여(#100DaysOfCode의 90일차: 과적합 및 과소적합), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://dev.to/iamdurga/day-90-of-100daysofcode-overfitting-and-underfitting-4j2m
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
# 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()
Reference
이 문제에 관하여(#100DaysOfCode의 90일차: 과적합 및 과소적합), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/iamdurga/day-90-of-100daysofcode-overfitting-and-underfitting-4j2m텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)