Fashion-mnist(2)
-
[케라스] Fashion-Mnist 데이터를 이용한 분류 예측 (성능향상필요)
import keras fm = keras.datasets.fashion_mnist (trainImage, trainLabel), (testImage, testLabel)= fm.load_data() import pandas as pd import numpy as np from keras.preprocessing.image import * from keras.utils import to_categorical from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt import random import os # 검증데이터 분리 trainImage, valImage= train_test_split(trainImag..
2020.04.28 -
[케라스] Fashion-Mnist 기반 CNN모델 코드
from keras.datasets import mnist from keras.utils import np_utils import numpy as np import sys 데이터 셋 준비 import keras fm = keras.datasets.fashion_mnist (trainImage, trainLabel), (testImage, testLabel)= fm.load_data() xTrain=trainImage.reshape(xTrain.shape[0],28,28,1) xTrain=xTrain.astype("float64") xTrain=xTrain/255 xTest=testImage.reshape(xTest.shape[0],28,28,1).astype("float64")/255 yTrain=np_..
2020.04.28