안녕하세요. 항상 감사하게 잘 공부하고 있었는데 예제 실행과정에서 에러가 나서 질문드립니다.
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
result = getattr(asarray(obj), method)(*args, **kwds)
문제가 되는 줄은 [2-actor-critic] 폴더 내부의 train 파일 line 103 인 것 같은데요.
state = np.reshape(state, [1, state_size])
구글링을 해보니
numpy 1.10 이상부터 지원하지 않는 방식이라고 하는 글도 본 것 같은데
혹시 문제를 해결하려면 어떻게 해야 될까요? numpy를 downgrade하면 될까요?
예제 코드 작성하실 당시의 package specification이 어떻게 되었는지 궁금합니다.
아직 파이썬이나 아나콘다를 활용한 가상환경 패키징에 친숙하지 않아서... ;; 간단한 것일수도 있지만 어떻게 해결해야 할지 막막하게 느껴져서 질문드립니다.
좋은 책 내주셔서 감사합니다.
+) 추가
2-actor-critic 내부의 train 뿐만 아니라 1-dqn 에서도 train 파일을 실행하면 동일한 에러가 발생합니다.
안녕하세요. 항상 감사하게 잘 공부하고 있었는데 예제 실행과정에서 에러가 나서 질문드립니다.
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
result = getattr(asarray(obj), method)(*args, **kwds)
문제가 되는 줄은 [2-actor-critic] 폴더 내부의 train 파일 line 103 인 것 같은데요.
state = np.reshape(state, [1, state_size])
구글링을 해보니
numpy 1.10 이상부터 지원하지 않는 방식이라고 하는 글도 본 것 같은데 혹시 문제를 해결하려면 어떻게 해야 될까요? numpy를 downgrade하면 될까요? 예제 코드 작성하실 당시의 package specification이 어떻게 되었는지 궁금합니다.
아직 파이썬이나 아나콘다를 활용한 가상환경 패키징에 친숙하지 않아서... ;; 간단한 것일수도 있지만 어떻게 해결해야 할지 막막하게 느껴져서 질문드립니다. 좋은 책 내주셔서 감사합니다.
+) 추가
2-actor-critic 내부의 train 뿐만 아니라 1-dqn 에서도 train 파일을 실행하면 동일한 에러가 발생합니다.