Deep learning/Code
keras_cnn_expert
%tensorflow_version 2.x import tensorflow as tf from tensorflow import keras import numpy as np from sklearn.datasets import load_digits x, y = load_digits(return_X_y=True) x.shape, y.shape, set(y) # 150개의 데이터, 클래스 k=3 → ((1797, 64), (1797,), {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) #간단한 모델 model = keras.Sequential() model.add(keras.layers.Input((8,8,1))) model.add(keras.layers.Conv2D(3, [3,3], padding='..
2020. 1. 30. 19:15