목록AIFFEL (20)
A.I
1. 얼굴 사진 준비¶ 디렉토리 구조 만들기¶mkdir -p ~/aiffel/camera_sticker/models mkdir -p ~/aiffel/camera_sticker/images 스티커 저장 및 디렉토리 이동¶wget https://aiffelstaticprd.blob.core.windows.net/media/original_images/king.png wget https://aiffelstaticprd.blob.core.windows.net/media/original_images/hero.png mv king.png hero.png ~/aiffel/camera_sticker/images In [560]: # 이미지 처리를 위해 opencv 와 노트북에 이미지를 출력하기 위한 matplotlib..
1. 아이리스 분류하기¶ In [1]: from sklearn.datasets import load_iris iris = load_iris() print(type(dir(iris))) # dir()는 객체가 어떤 변수와 메서드를 가지고 있는지 나열함 1-1. 아이리스 데이터 내부 구조 파악 In [2]: iris.keys() Out[2]: dict_keys(['data', 'target', 'frame', 'target_names', 'DESCR', 'feature_names', 'filename']) In [3]: iris_data = iris.data print(iris_data.shape) #shap..
1-1.MNIST 숫자 손글씨 Dataset 불러들이기 In [7]: import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib.pyplot as plt print(tf.__version__) # Tensorflow의 버전을 출력 mnist = keras.datasets.mnist # MNIST 데이터를 로드. 다운로드하지 않았다면 다운로드까지 자동으로 진행됩니다. (x_train, y_train), (x_test, y_test) = mnist.load_data() print(len(x_train)) # x_train 배열의 크기를 출력 2.2.0 60000 In [8]: # index에 0에서 5999..