Skip to content

Commit 350d67c

Browse files
committed
docs: add a titanic forecasting how-to
1 parent ace9584 commit 350d67c

File tree

6 files changed

+789
-12
lines changed

6 files changed

+789
-12
lines changed

azure_ai/commands/compute_cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
if __name__ == "__main__":
1616

17-
compute_cluster = AzureAIMLStudioComputeCluster(cluster_name="standard-cluster").cluster
17+
compute_cluster = AzureAIMLStudioComputeCluster(cluster_name="tiny-cluster").cluster
1818
retval = compute_cluster.serialize() # type: ignore[no-untyped-call]
1919
retval = json.dumps(retval, indent=4)
2020
print(retval)

azure_ai/tests/test_batch_endpoint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def setUpClass(cls):
3030
hash_suffix = hashlib.sha256(datetime.now().isoformat().encode()).hexdigest()[:8]
3131
cls.endpoint_name = "test-batch-endpoint" + "-" + hash_suffix
3232
cls.model_name = "best-01" # FIX NOTE: need to create a temporary model that we can destroy after the test
33-
cls.compute_target_name = "standard-cluster" # FIX NOTE: need to create a temporary compute cluster that we can destroy after the test
33+
cls.compute_target_name = (
34+
"tiny-cluster" # FIX NOTE: need to create a temporary compute cluster that we can destroy after the test
35+
)
3436
cls.description = "Custom test batch endpoint"
3537

3638
@classmethod

azure_ai/tests/test_cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ class AzureMLTestCluster(AzureMLTestBase):
2020
def test_existing_cluster(self):
2121
"""
2222
Test that we can create and use an Azure ML workspace.
23-
This will get a cluster named "standard-cluster" if it exists,
23+
This will get a cluster named "tiny-cluster" if it exists,
2424
or create it if it does not.
2525
"""
2626
if not self.is_testable:
2727
logger.warning("Skipping test_existing_cluster() as the environment is not testable.")
2828
return
2929

30-
cluster = AzureAIMLStudioComputeCluster(cluster_name="standard-cluster")
30+
cluster = AzureAIMLStudioComputeCluster(cluster_name="tiny-cluster")
3131
self.assertIsInstance(cluster, AzureAIMLStudioComputeCluster)

docs/AZURE_ACCOUNT_SETUP.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ az provider list --query "[?namespace=='Microsoft.MachineLearningServices' || na
147147

148148
```console
149149
az ml compute create \
150-
--name automl-cluster \
150+
--name tiny-cluster \
151151
--type amlcompute \
152152
--size Standard_D4s_v3 \
153-
--max-instances 4 \
153+
--max-instances 1 \
154154
--min-instances 0 \
155155
--idle-time-before-scale-down 300 \
156156
--resource-group automl-resources \
@@ -161,7 +161,7 @@ az ml compute create \
161161

162162
```console
163163
az ml compute show \
164-
--name automl-cluster \
164+
--name tiny-cluster \
165165
--resource-group automl-resources \
166166
--workspace-name automl-workspace \
167167
--query "{size:size, location:location, maxInstances:scaleSettings.maxNodeCount}"
@@ -231,18 +231,18 @@ Once your quota is approved, update your cluster:
231231
```console
232232
# Update cluster to use new quota limits
233233
az ml compute update \
234-
--name automl-cluster \
234+
--name tiny-cluster \
235235
--resource-group automl-resources \
236236
--workspace-name automl-workspace \
237-
--max-instances 8 \
237+
--max-instances 2 \
238238
--min-instances 0
239239
```
240240

241241
### Verify Cluster Update
242242

243243
```console
244244
az ml compute show \
245-
--name automl-cluster \
245+
--name tiny-cluster \
246246
--resource-group automl-resources \
247247
--workspace-name automl-workspace \
248248
--query "scaleSettings"
@@ -269,7 +269,7 @@ ws = Workspace.from_config()
269269
print(f"✅ Connected to workspace: {ws.name}")
270270

271271
# Test compute target
272-
compute_target = ws.compute_targets["automl-cluster"]
272+
compute_target = ws.compute_targets["tiny-cluster"]
273273
print(f"✅ Compute cluster ready: {compute_target.provisioning_state}")
274274
```
275275

@@ -345,7 +345,7 @@ az account set --subscription "your-subscription-name"
345345
```console
346346
# Set up auto-scale down after 5 minutes
347347
az ml compute update \
348-
--name automl-cluster \
348+
--name tiny-cluster \
349349
--idle-time-before-scale-down 300 \
350350
--resource-group automl-resources \
351351
--workspace-name automl-workspace

0 commit comments

Comments
 (0)