편집 기록

편집 기록
  • 프로필 DaeSung Park님의 편집
    날짜2018.01.12

    밑바닥부터 시작하는 딥러닝 5장 오차역전파법


    p.184 5.7.3오차역전파법으로 구한 기울기 검증하기 구현하려고 하고 있습니다.

    앞절에서

    from dataset.mnist import load_mnist 파일 불러 올 때도 계속 안되서 구글링 하다보니 디렉터리를 잘못 설정해서 그런 것 같아

    os.chdir() 사용해서 경로를 수정했었습니다.

    -> os.chdir("C:\python36\deeplearning_from_scratch-master\deeplearning_from_scratch-master\ch1.헬로 파이썬")

    이 경로로요.

    그랬더니 from dataset.mnist import load_mnist 파일을 불러왔는데

    from two_layer_net import TwoLayerNet를 불러와야하는데 그게 안불러와져서요.

    그래서 다시 경로를 설정했어요

    -> os.chdir("C:\python36\deeplearning_from_scratch-master") 이렇게요

    그런데 계속 오류가 뜨네요

    Traceback (most recent call last): File "", line 1, in from two_layer_net import TwoLayerNet ModuleNotFoundError: No module named 'two_layer_net'

    이 경로에 깃허브에서 다운 받은 거 저장해놨습니다.

    C:\python36\deeplearning_from_scratch-master

    다른 구현하는 것은 어렵지 않은데 자꾸 깃허브에서 불러오려는 파일들을 부를 때 마다 경로가 문제가 되네요..

    경로 설정하는 방법(?)을 알고 싶어요

  • 프로필 알 수 없는 사용자님의 편집
    날짜2018.01.06

    밑바닥부터 시작하는 딥러닝 5장 오차역전파법


    p.184 5.7.3오차역전파법으로 구한 기울기 검증하기 구현하려고 하고 있습니다.

    앞절에서

    from dataset.mnist import load_mnist 파일 불러 올 때도 계속 안되서 구글링 하다보니 디렉터리를 잘못 설정해서 그런 것 같아

    os.chdir() 사용해서 경로를 수정했었습니다.

    -> os.chdir("C:\python36\deeplearning_from_scratch-master\deeplearning_from_scratch-master\ch1.헬로 파이썬")

    이 경로로요.

    그랬더니 from dataset.mnist import load_mnist 파일을 불러왔는데

    from two_layer_net import TwoLayerNet를 불러와야하는데 그게 안불러와져서요.

    그래서 다시 경로를 설정했어요

    -> os.chdir("C:\python36\deeplearning_from_scratch-master") 이렇게요

    그런데 계속 오류가 뜨네요

    Traceback (most recent call last): File "", line 1, in from two_layer_net import TwoLayerNet ModuleNotFoundError: No module named 'two_layer_net'

    이 경로에 깃허브에서 다운 받은 거 저장해놨습니다.

    C:\python36\deeplearning_from_scratch-master

    다른 구현하는 것은 어렵지 않은데 자꾸 깃허브에서 불러오려는 파일들을 부를 때 마다 경로가 문제가 되네요..

    경로 설정하는 방법(?)을 알고 싶어요