알고리즘 트레이딩 (파이썬)

Keras로 Github 다운로드

오이띠 2021. 5. 17. 13:29
728x90

코드: 

 

# 구글 코랩에서만 쓸 수 있는 라이브러리

# 서버 할당함 시간 오래 걸림 - 런타임 GPU 가속기 씀

# google drive server를 연결하기 위한 라이브러리

from google.colab import drive

 

# 구글 드라이브를 colab server와 연결

import os # 경로 설정시 가장 많이 씀

# colab의 홈 폴더 = content

if not (os.path.exists('/content/drive')):

  drive.mount('/content/drive')

 

# 경로 이동

%cd /content/drive/'MyDrive'

 

# linux 명령어 - 현재 경로가 어디로 설정되어 있는지

!pwd

 

# 구글 드라이브가 내 하드드라이브. 실행은 코랩 서버에서 함

if not os.path.exists('006975'):

  !git clone https://github.com/gilbutITbook/006975.git

728x90