@@ -184,11 +184,11 @@ The parameter `value="housepricemodel"` refers to the artifact name, which refer
184184
185185Your code should resemble:
186186
187- <!-- border --> 
187+ <!-- border --> 
188188
189189After execution, this is shown in SAP AI Launchpad.
190190
191- <!-- border --> 
191+ <!-- border --> 
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
509509Paste 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+
512517response = tracking_client.query(
513518 execution_ids = [
514519 'e1f2169db8760b5d' # list of execution IDs for which to query metrics
0 commit comments