데이터셋 불러오기 import os import urllib.request TITANIC_PATH = os.path.join("datasets", "titanic") DOWNLOAD_URL = "https://raw.githubusercontent.com/rickiepark/handson-ml2/master/datasets/titanic/" def fetch_titanic_data(url=DOWNLOAD_URL, path=TITANIC_PATH): if not os.path.isdir(path): # 우선 디렉터리가 있는지 확인 os.makedirs(path) # 디렉터리가 없으므로 생성 for filename in ("train.csv", "test.csv"): filepath = os.path.joi..