Skip to content

Commit

Permalink
Merge branch 'master' into feature/validators
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-echeverria committed Jan 6, 2025
2 parents 46b8f1d + e93af42 commit 592bf6a
Show file tree
Hide file tree
Showing 21 changed files with 99 additions and 482 deletions.
424 changes: 5 additions & 419 deletions demo/scenarios/1_requirements.ipynb

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions demo/scenarios/2_evidence.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "env",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -54,12 +54,7 @@
"pygments_lexer": "ipython3",
"version": "3.9.16"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "82adda432962015d5f71beb9387a99f24d390514e497c776c87ff3434daf7312"
}
}
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
Expand Down
6 changes: 3 additions & 3 deletions demo/scenarios/2a_evidence_fairness.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -183,7 +183,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
6 changes: 3 additions & 3 deletions demo/scenarios/2b_evidence_robustness.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -347,7 +347,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
4 changes: 2 additions & 2 deletions demo/scenarios/2c_evidence_performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -93,7 +93,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
12 changes: 6 additions & 6 deletions demo/scenarios/2d_evidence_interpretability.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -84,7 +84,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -175,7 +175,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -191,7 +191,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
8 changes: 4 additions & 4 deletions demo/scenarios/2e_evidence_accuracy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -82,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -132,7 +132,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
8 changes: 4 additions & 4 deletions demo/scenarios/2f_evidence_interoperability.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -96,7 +96,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -110,7 +110,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.15"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions demo/scenarios/2g_evidence_resilience.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -92,7 +92,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
8 changes: 4 additions & 4 deletions demo/scenarios/2h_evidence_monitorability.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -110,7 +110,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -124,7 +124,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.15"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions demo/scenarios/2i_evidence_performance_time.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -92,7 +92,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
10 changes: 5 additions & 5 deletions demo/scenarios/3_report.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -32,7 +32,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -62,7 +62,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -112,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -144,7 +144,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv-3.9",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand Down
8 changes: 8 additions & 0 deletions demo/scenarios/copy_nc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

MODEL="OxfordFlower"
VERSION="0.0.1"

# Copy sample negotiation card to our working store space. Create folders if needed.
mkdir -p store/models/$MODEL/$VERSION
cp ../sample_store/models/$MODEL/$VERSION/*.json ./store/models/$MODEL/$VERSION
14 changes: 14 additions & 0 deletions demo/scenarios/demo_script.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pre requirements:

- Have environment running; to do this, execute run_environment.sh from demo/scenarios.
- Have already executed all notebooks that will be shown, so the results can be seen in the notebooks themselves.

Demo:
- Start with slides explaining what MLTE is.
- Continue slides including a diagram of the whole process. Use this diagram later with more slides to indicate where in the process we are as we move forward through the demo.
- Log into frontend (browser, localhost:8000), show Negotiation Card. Explain important parts of negotiation card and how it is refined.
- Open up Jupyter Notebook with Spec (the one in demo/scenarios/1_requirements.ipynb. Note that we may need a slightly modified version if we add a data quality QAS. Skip the Negotiation Card definition, but do show the context initialization, and then the Spec definition. Walk though it without getting into too many details.
- Go back to frontend. Show Test Catalog, and show how people would use it find an example of how to measure certain QAS.
- Open up one Jupyter Notebooks with QAS test measurements, the demo/scenarios/2a_evidence_fairness one, and walk through it.
- Open up the demo/scenarios/3_report.ipynb Notebook, and show the process for validating and generating the report.
- Go back to frontend, and show the report results.
4 changes: 1 addition & 3 deletions demo/scenarios/run_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
MODEL="OxfordFlower"
VERSION="0.0.1"

# Copy sample negotiation card to our working store space. Create folders if needed.
mkdir -p store/models/$MODEL/$VERSION
cp ../sample_store/models/$MODEL/$VERSION/*.json ./store/models/$MODEL/$VERSION
source copy_nc.sh

# Set env vars to not use a relational DB, but a file store, and point to the one here.
export STORE_TYPE=fs
Expand Down
Loading

0 comments on commit 592bf6a

Please sign in to comment.