Programming/Python
2023. 9. 20.
[DL] over(under)fitting 최적, Dropout, Callback
기본 데이터 정리 및 model 함수 정의 후 호출 from tensorflow import keras from sklearn.model_selection import train_test_split (train_input, train_target), (test_input, test_target) = keras.datasets.fashion_mnist.load_data() train_scaled = train_input / 255.0 train_scaled, val_scaled, train_target, val_target = train_test_split( train_scaled, train_target, test_size=0.2, random_state=42) def model_fn(a_layer=No..