Skip to content

Commit

Permalink
Merge pull request #30 from ruivieira/main
Browse files Browse the repository at this point in the history
docs: Update ODH explainers tutorial
  • Loading branch information
ruivieira authored Jul 30, 2024
2 parents 7294a7e + 973b0c3 commit ea37521
Show file tree
Hide file tree
Showing 8 changed files with 1,225 additions and 1,058 deletions.
1 change: 1 addition & 0 deletions docs/modules/ROOT/attachments/explainer-data-housing.json

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions docs/modules/ROOT/examples/explainer-is-housing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
name: housing
annotations:
serving.kserve.io/deploymentMode: ModelMesh
spec:
predictor:
model:
modelFormat:
name: xgboost
runtime: mlserver-1.x
storageUri: "https://github.com/trustyai/model-collection/raw/housing-data/housing-data/model.json"
24 changes: 24 additions & 0 deletions docs/modules/ROOT/examples/kserve-explainer-housing-highest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"inputs": [
{
"name": "inputs",
"shape": [
1,
8
],
"datatype": "FP64",
"data": [
[
6.6227,
20.0,
6.282147315855181,
1.0087390761548065,
2695.0,
3.3645443196004994,
37.42,
-121.86
]
]
}
]
}
24 changes: 24 additions & 0 deletions docs/modules/ROOT/examples/kserve-explainer-housing-lowest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"inputs": [
{
"name": "inputs",
"shape": [
1,
8
],
"datatype": "FP64",
"data": [
[
4.2679,
33.0,
5.7566462167689165,
0.9918200408997955,
1447.0,
2.9591002044989776,
34.68,
-118.14
]
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"timestamp": "2024-07-29T20:47:41.511+00:00",
"type": "explanation",
"saliencies": {
"predict-0": [
{
"name": "inputs-0",
"score": 0.05798290741077758,
"confidence": 0.12904453014228442
},
{
"name": "inputs-1",
"score": -0.02583508910348834,
"confidence": 0.144478542298868
},
{
"name": "inputs-2",
"score": 0.05414353021811688,
"confidence": 0.15250464517451795
},
{
"name": "inputs-3",
"score": -2.9211788608753814E-4,
"confidence": 0.1489221798898736
},
{
"name": "inputs-4",
"score": -0.010685071550586595,
"confidence": 0.13328783125568475
},
{
"name": "inputs-5",
"score": -0.3197132284493354,
"confidence": 0.1341401364621916
},
{
"name": "inputs-6",
"score": 0.4630318848137003,
"confidence": 0.13154033030120849
},
{
"name": "inputs-7",
"score": -1.0172981362310851,
"confidence": 0.3688144561620335
},
{
"name": "Background",
"score": 2.1364767908097266,
"confidence": 0.0
}
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ea37521

Please sign in to comment.