Skip to content

Commit ea37521

Browse files
authored
Merge pull request #30 from ruivieira/main
docs: Update ODH explainers tutorial
2 parents 7294a7e + 973b0c3 commit ea37521

8 files changed

+1225
-1058
lines changed

docs/modules/ROOT/attachments/explainer-data-housing.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: serving.kserve.io/v1beta1
2+
kind: InferenceService
3+
metadata:
4+
name: housing
5+
annotations:
6+
serving.kserve.io/deploymentMode: ModelMesh
7+
spec:
8+
predictor:
9+
model:
10+
modelFormat:
11+
name: xgboost
12+
runtime: mlserver-1.x
13+
storageUri: "https://github.com/trustyai/model-collection/raw/housing-data/housing-data/model.json"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"inputs": [
3+
{
4+
"name": "inputs",
5+
"shape": [
6+
1,
7+
8
8+
],
9+
"datatype": "FP64",
10+
"data": [
11+
[
12+
6.6227,
13+
20.0,
14+
6.282147315855181,
15+
1.0087390761548065,
16+
2695.0,
17+
3.3645443196004994,
18+
37.42,
19+
-121.86
20+
]
21+
]
22+
}
23+
]
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"inputs": [
3+
{
4+
"name": "inputs",
5+
"shape": [
6+
1,
7+
8
8+
],
9+
"datatype": "FP64",
10+
"data": [
11+
[
12+
4.2679,
13+
33.0,
14+
5.7566462167689165,
15+
0.9918200408997955,
16+
1447.0,
17+
2.9591002044989776,
18+
34.68,
19+
-118.14
20+
]
21+
]
22+
}
23+
]
24+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"timestamp": "2024-07-29T20:47:41.511+00:00",
3+
"type": "explanation",
4+
"saliencies": {
5+
"predict-0": [
6+
{
7+
"name": "inputs-0",
8+
"score": 0.05798290741077758,
9+
"confidence": 0.12904453014228442
10+
},
11+
{
12+
"name": "inputs-1",
13+
"score": -0.02583508910348834,
14+
"confidence": 0.144478542298868
15+
},
16+
{
17+
"name": "inputs-2",
18+
"score": 0.05414353021811688,
19+
"confidence": 0.15250464517451795
20+
},
21+
{
22+
"name": "inputs-3",
23+
"score": -2.9211788608753814E-4,
24+
"confidence": 0.1489221798898736
25+
},
26+
{
27+
"name": "inputs-4",
28+
"score": -0.010685071550586595,
29+
"confidence": 0.13328783125568475
30+
},
31+
{
32+
"name": "inputs-5",
33+
"score": -0.3197132284493354,
34+
"confidence": 0.1341401364621916
35+
},
36+
{
37+
"name": "inputs-6",
38+
"score": 0.4630318848137003,
39+
"confidence": 0.13154033030120849
40+
},
41+
{
42+
"name": "inputs-7",
43+
"score": -1.0172981362310851,
44+
"confidence": 0.3688144561620335
45+
},
46+
{
47+
"name": "Background",
48+
"score": 2.1364767908097266,
49+
"confidence": 0.0
50+
}
51+
]
52+
}
53+
}
Loading

0 commit comments

Comments
 (0)