Skip to content

Commit fcb7872

Browse files
committed
Fixed image file names
1 parent 46b1793 commit fcb7872

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tutorials/ai-core-metrics/ai-core-metrics.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ The parameter `value="housepricemodel"` refers to the artifact name, which refer
184184

185185
Your code should resemble:
186186

187-
<!-- border -->![image](img/ail/modelA.png)
187+
<!-- border -->![image](img/ail/ModelA.png)
188188

189189
After execution, this is shown in SAP AI Launchpad.
190190

191-
<!-- border -->![image](img/ail/modelB.png)
191+
<!-- border -->![image](img/ail/ModelB.png)
192192

193193

194194
### Custom metrics for model inspection
@@ -304,7 +304,7 @@ for train_index, val_index in kf.split(train_x):
304304
# Score on validation data (hold-out dataset)
305305
val_step_r2 = clf.score(train_x.iloc[val_index], train_y.iloc[val_index])
306306
# Metric Logging: Step Information
307-
aic_connection.metrics.log_metrics(
307+
aic_connection.log_metrics(
308308
metrics = [
309309
Metric(name= "(Val) Fold R2", value= float(val_step_r2), timestamp=datetime.utcnow(), step=i),
310310
]
@@ -509,6 +509,11 @@ Click `AI Core` > `lm` > `metrics` > `Get metrics` and double check the `executi
509509
Paste and edit, then execute the following snippet:
510510

511511
```PYTHON
512+
tracking_client = Tracking(base_url = aic_service_key["serviceurls"]["AI_API_URL"] + "/v2",
513+
auth_url= aic_service_key["url"] + "/oauth/token",
514+
client_id = aic_service_key['clientid'],
515+
client_secret = aic_service_key['clientsecret'])
516+
512517
response = tracking_client.query(
513518
execution_ids = [
514519
'e1f2169db8760b5d' # list of execution IDs for which to query metrics

0 commit comments

Comments
 (0)