MLflow projects 모듈
MLflow Projects는 Python에서 mlflow projects 모듈을 사용해 프로그래밍 방식으로도 실행할 수 있어요.
이 연습에서는 projects 모듈을 사용해 "Insurance" Project의 모델을 학습하는 MLflow Project를 실행해 보아요. MLproject 파일에서 엔트리 포인트를 지정해 학습 코드를 실행하고, 실험 이름을 "Insurance"로 설정해 모델이 MLflow Tracking의 올바른 실험에 기록되도록 하세요.
IPython 셸에서 print(MLproject)를 실행하면 MLproject 파일의 내용을 확인할 수 있어요.
이 연습은 강의의 일부입니다
MLflow 소개
연습 안내
mlflow projects모듈에서run()함수를 호출하세요.MLproject파일의 URI를 현재 작업 디렉터리로 설정하세요.MLproject파일에 따라 엔트리 포인트를"main"으로 설정하세요.- 실험 이름을
"Insurance"로 설정하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
import mlflow
# Set the run function from the MLflow Projects module
____.____.____(
# Set the URI as the current working directory
____='____',
# Set the entry point to main
____='____',
# Set the experiment name as Insurance
____='____',
env_manager="local",
synchronous=True,
)