Skip to content

Commit

Permalink
Version 0.1.57.dev0
Browse files Browse the repository at this point in the history
  • Loading branch information
emeli-dral committed Sep 6, 2022
1 parent c7ce003 commit dfad62f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 37 deletions.
23 changes: 17 additions & 6 deletions examples/how_to_questions/report_concept_draft.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@
"model = ensemble.RandomForestClassifier(random_state=1, n_estimators=10)\n",
"model.fit(bcancer_ref[bcancer_data.feature_names.tolist()], bcancer_ref.target)\n",
"\n",
"bcancer_ref['prediction'] = model.predict_proba(bcancer_ref[bcancer_data.feature_names.tolist()])[:, 1]\n",
"bcancer_cur['prediction'] = model.predict_proba(bcancer_cur[bcancer_data.feature_names.tolist()])[:, 1]"
"bcancer_ref['pos'] = model.predict_proba(bcancer_ref[bcancer_data.feature_names.tolist()])[:, 1]\n",
"bcancer_ref['neg'] = model.predict_proba(bcancer_ref[bcancer_data.feature_names.tolist()])[:, 0]\n",
"\n",
"bcancer_cur['pos'] = model.predict_proba(bcancer_cur[bcancer_data.feature_names.tolist()])[:, 1]\n",
"bcancer_cur['neg'] = model.predict_proba(bcancer_cur[bcancer_data.feature_names.tolist()])[:, 0]"
]
},
{
Expand Down Expand Up @@ -249,7 +252,8 @@
" ClassificationPerformance(),\n",
"])\n",
"\n",
"classification_performance_report.run(reference_data=bcancer_ref, current_data=bcancer_cur)\n",
"classification_performance_report.run(reference_data=bcancer_ref, current_data=bcancer_cur,\n",
" column_mapping=ColumnMapping(prediction='pos'))\n",
"classification_performance_report"
]
},
Expand All @@ -258,7 +262,14 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"cat_target_drift_report = Report(metrics=[\n",
" CatTargetDrift(),\n",
"])\n",
"\n",
"cat_target_drift_report.run(reference_data=iris_ref, current_data=iris_cur)\n",
"cat_target_drift_report"
]
}
],
"metadata": {
Expand All @@ -277,9 +288,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.9"
"version": "3.9.12"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
}
41 changes: 11 additions & 30 deletions examples/sample_notebooks/getting_started_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
"\n",
"from evidently.pipeline.column_mapping import ColumnMapping\n",
"\n",
"from evidently.dashboard import Dashboard\n",
"from evidently.dashboard.tabs import DataDriftTab, NumTargetDriftTab\n",
"from evidently.report import Report\n",
"from evidently.metric_preset import DataDrift, NumTargetDrift\n",
"\n",
"from evidently.test_suite import TestSuite\n",
"from evidently.test_preset import DataQuality, DataStability, DataDrift\n",
"from evidently.test_preset import DataQuality, DataStability\n",
"from evidently.tests import *"
]
},
Expand Down Expand Up @@ -195,7 +195,7 @@
}
},
"source": [
"## Dashboard"
"## Report"
]
},
{
Expand All @@ -209,9 +209,10 @@
},
"outputs": [],
"source": [
"drift_dashboard = Dashboard(tabs=[DataDriftTab(), NumTargetDriftTab()])\n",
"drift_dashboard.calculate(reference, current)\n",
"drift_dashboard.show()"
"drift_report = Report(metrics=[DataDrift(), NumTargetDrift()])\n",
"\n",
"drift_report.run(reference_data=reference, current_data=current)\n",
"drift_report"
]
},
{
Expand Down Expand Up @@ -267,31 +268,11 @@
"#get JSON\n",
"tests.json()"
]
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": null,
"id": "726e7b8e",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -305,9 +286,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.13"
"version": "3.9.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
}
2 changes: 1 addition & 1 deletion src/evidently/_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# coding: utf-8

version_info = (0, 1, 56, "dev0")
version_info = (0, 1, 57, "dev0")
__version__ = ".".join(map(str, version_info))

0 comments on commit dfad62f

Please sign in to comment.