티스토리 뷰
model.summary()로 모델구조 확인
from tensorflow.python.keras.models import Sequential
from tensorflow.python.keras.layers import Dense
import numpy as np
#1. 데이터
x = np.array([1,2,3])
y = np.array([1,2,3])
#2. 모델구성
model = Sequential()
model.add(Dense(5, input_dim = 1))
model.add(Dense(3, activation = 'relu'))
model.add(Dense(4, activation = 'sigmoid'))
model.add(Dense(2, activation = 'relu'))
model.add(Dense(1))
model.summary()

'Artificial Intelligence > Deep Learning' 카테고리의 다른 글
[DL] 데이터 스케일링(Data Scaling)이란? (0) | 2022.07.07 |
---|---|
[DL] 사이킷런의 데이터 스케일링 사용 시 주의할 점 (0) | 2022.07.06 |
[DL] 회귀/분류모델 표 정리 (0) | 2022.07.05 |
[DL] soft max, 다중분류모델 (0) | 2022.07.04 |
[DL] validation/metrics/val_loss/early stopping/history (0) | 2022.07.02 |