다음은 모델 생성 및 컴파일 실행 결과입니다.
Model: "function_1"
________________________________________________________________
Layer (type) Output Shape Param #
================================================================
input_1 (InputLayer) [(None, 21)] 0
________________________________________________________________
dense (Dense) (None, 15) 330
________________________________________________________________
dense_1 (Dense) (None, 10) 160
________________________________________________________________
dense_2 (Dense) (None, 4) 44
================================================================
Total params: 534
Trainable params: 534
Non-trainable params: 0
________________________________________________________________
이제 모델을 훈련시키겠습니다.
코드 2-7 모델 훈련
history = model.fit(X_train, y_train, batch_size=8, epochs=50, verbose=1, validation_split=0.2)