A4 - architecture

project/
├── train.py
├── data.csv
├── requirements.txt
└── model.pkl

# Run
>>> python train.py

azure architecture.png|250

ML workspace

  • a workspace is the top-level Azure ML resource used to organise and manage ML assets and activities

Azure subscription
      │
      ▼
Resource Group
      │
      ▼
Azure ML Workspace
      │
      ├── Data assets
      ├── Environments
      ├── Jobs
      ├── Experiments
      ├── Models
      ├── Components
      ├── Pipelines
      ├── Compute
      └── Endpoints
Subscription
    │
    ▼
rg-ai300-dev
    ├── mlw-ai300-dev        ← Azure ML workspace
    ├── stai300dev               ← Storage
    ├── kv-ai300-dev           ← Key Vault
	└── cr-ai300dev             ← Container Registry

interact with workspace.png|250

from azure.ai.ml import MLClient

ml_client = MLClient(
	# identity/authentication
    credential=...,
	# target resource
    subscription_id=...,
    resource_group_name=...,
    workspace_name=...
)


from azure.identity import DefaultAzureCredential
Experiment: detector-failure-model
│
├── Job/run 001
│   learning rate = .01
│
├── Job/run 002
│   learning rate = .001
│
└── Job/run 003
    learning rate = .0001

entire architecture.png|250

# resource-management view
RESOURCE GROUP
├── Azure ML Workspace
├── Storage
├── Key Vault
└── Container Registry

# ML lifecycle view
AZURE ML WORKSPACE
├── jobs
├── models
├── data assets
├── environments
├── components
└── endpoints