Functional API (Keras)

모델 생성

구조

input -> hidden1 -> hidden2 -> concat -> output
intput - - - - - - - - - - - - - - - - - - -> concat



이후 모델을 훈련 , 평가 , 검증 , test 하는 과정은 다른 경우과 같게 일반적인 방식으로 구현된다.

이외에 모델을 만드는 방식에서 feature를 나누어 입력층을 다수 만드려면 다음과 같이도 만들 수 있다.

다음과 같은 모델의 경우 구조는 다음과 같을 것이다.



input_a - - - - - - - - - - - - - - - - - - - > concat => output
input_b -> hidden1 -> hidden2 -> concat => output

모델 구조

다중 출력이 요구되는 경우