Deep learning/Code
cnn_2_number_with_blank
※ 2 자리수 숫자, 공백 CNN 분류기 %tensorflow_version 2.x import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_digits tf.keras.backend.set_floatx('float32') x, y = load_digits(return_X_y=True) x.shape, y.shape, set(y) → ((1797, 64), (1797,), {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}) ▶ 학습데이터와 테스트 데이터를 나눕니다 m = len(y)//2 x_train = x[:..
2020. 1. 30. 20:01