rnn, tensorflow, python, jupyter
[작업배경]
- 도시에 관한 논문, 암에 관한 논문 제목을 이용하여 새로운 형태의 논문 제목을 뽑아내는 작업을 하고 있음.
- 도시 논문에 들어간 단어/암 논문에 들어간 단어를 각각 하나씩 선택하여 조합하면 그 단어가 들어간, 논문 제목이 만들어지는 백단과 뷰단 인터페이스를 만들어야함.
[장비]
- 2013 late 맥북프로 13
[개발환경]
jupyter-tensorflow
[에러]
valueError: Trying to share variable rnn/multi rnn_cell/cell_0/basic_lstm_cell/kernel, but specified shape ~ 뒤에 사이즈가 다르다는 에러
이런 식으로 수정
cell = tf.contrib.rnn.MultiRNNCell([lstm_cell() for i in range(num_layers)])
def lstm_cell():
lstm = tf.contrib.rnn.BasicLSTMCell(lstm_size)
drop = tf.contrib.rnn.DropoutWrapper(lstm, output_keep_prob=keep_prob)
return drop
[참고페이지]
https://github.com/udacity/deep-learning/issues/132
https://www.gitbook.com/book/tensorflowkorea/tensorflow-kr/details
http://solarisailab.com/archives/1620
https://github.com/hunkim/DeepLearningZeroToAll
http://jsideas.net/python/2017/04/05/kakao_rnn.html
http://aikorea.org/blog/rnn-tutorial-2/
https://www.nextobe.com/single-post/2017/07/18/TensorFlow를-사용한-텍스트-요약
http://solarisailab.com/archives/1925