MLflowをインストールして追跡を始める
追跡サーバーを起動し、コードから接続できるようにします。
「MLflowをインストールして追跡を始める」はCoddyKit上の無料MLOps Academyレッスンです。 これはレッスン1/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはMLOps Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 MLOps Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Why Track at All
You run dozens of experiments and forget which settings gave the best score. MLflow records every run so no result is ever lost again.
Install It
MLflow is just a Python package. One pip install gives you the library, a tracking API, and a built-in web UI to browse runs.
pip install mlflowThe Tracking Server
The tracking server is where runs are stored. Start one locally and it serves an API plus a dashboard on port 5000.
mlflow server --host 127.0.0.1 --port 5000Point Your Code At It
Tell MLflow where the server lives with set_tracking_uri. After this, every run you log flows to that server.
import mlflow
mlflow.set_tracking_uri("http://127.0.0.1:5000")What a Run Is
A run is one execution of your training code. It bundles the parameters you chose, the metrics you got, and any files you saved.
Start a Run
Wrap your training in start_run. MLflow opens a run, gives it a unique ID, and closes it cleanly when the block ends.
with mlflow.start_run():
train_model()Experiments Group Runs
An experiment is a named folder for related runs. Set one so all your churn-model attempts live together instead of scattered.
mlflow.set_experiment("churn-model")Where Runs Are Stored
Behind the scenes MLflow writes run metadata to a backend store, like a SQLite or Postgres database, so it survives restarts.
Local Files Mode
No server yet? MLflow falls back to a local mlruns folder. Great for quick tests, but a shared server is better for teams.
Open the UI
Browse everything you logged in the MLflow UI. Just visit the server URL in a browser to see your runs as a sortable table.
Tracking Is Step One
Tracking is the foundation of MLOps. Once every run is captured, you can compare, reproduce, and promote models with confidence.
Quick Check
Let us check how you connect your code to MLflow.
Recap
You installed MLflow, started a tracking server, pointed your code at it, and opened a run. Every experiment now has a home. ✅
よくある質問
「MLflowをインストールして追跡を始める」レッスンは無料ですか?
はい。「MLflowをインストールして追跡を始める」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、MLOps Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 MLOps Academyコースには全4レッスンが含まれています。
「MLflowをインストールして追跡を始める」で何を学びますか?
追跡サーバーを起動し、コードから接続できるようにします。 ブラウザで直接実行するハンズオンコードでMLOps Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
MLOps Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのMLOps Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン1/4です。
「MLflowをインストールして追跡を始める」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このMLOps Academyレッスンでコードを書いて実行できますか?
はい。すべてのMLOps Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- MLflowをインストールして追跡を始める
- パラメーター、メトリクス、アーティファクトを記録する
- MLflow UIで実行を比較する
- 1行のコードで自動記録する