인프런 커뮤니티 질문&답변
섹션9 First Autoencoder 인코더, 디코더 모델 생성 오류 해결 방법
작성
·
156
0
강의 14분쯤에서 모델을 변경하는 부분입니다.
케라스가 업데이트 된 건지는 잘 모르겠지만 아래 부분에서 시퀀셜 모델이 레이어를 단일 값으로 받을 수 없어 에러가 납니다.
encoder = Sequential(Dense(2, input_shape=(3, )))
decoder = Sequential(Dense(3, input_shape=(2, )))
autoencoder = Sequential([encoder, decoder])
autoencoder.summary()아래 처럼 괄호로 감싸 리스트로 넘기면 해결됩니다.
encoder = Sequential([Dense(2, input_shape=(3, ))])
decoder = Sequential([Dense(3, input_shape=(2, ))])
autoencoder = Sequential([encoder, decoder])
autoencoder.summary()




