Skip to content

Commit

Permalink
feat(sdk): check chart notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
dvalleri committed Dec 18, 2024
1 parent 992a4a4 commit efcb692
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 50 deletions.
4 changes: 2 additions & 2 deletions sdk/tests/chart/binary_data_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d856714cff904d74a6ac25d8a3e81293",
"model_id": "0f59b3c8ba364f6c9975416b7470e09c",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -48,7 +48,7 @@
}
],
"source": [
"from radicalbit_platform_sdk.charts impor RadicalbitChart, RbitChartData\n",
"from radicalbit_platform_sdk.charts import RadicalbitChart, RbitChartData\n",
"\n",
"RadicalbitChart().data_quality(data=RbitChartData(\n",
" model=model,\n",
Expand Down
44 changes: 2 additions & 42 deletions sdk/tests/chart/binary_model_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,7 @@
"execution_count": 2,
"id": "6b003783-f258-4687-b689-7564a433d2c8",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"f1=0.8512557559815072 accuracy=0.8563333333333333 weighted_precision=0.8504885379797771 weighted_recall=0.8563333333333333 weighted_f_measure=0.8512557559815072 weighted_true_positive_rate=0.8563333333333333 weighted_false_positive_rate=0.3078430650916095 area_under_roc=0.9170999040203395 area_under_pr=0.7894282641864298 log_loss=2.4781894979586054 precision=0.7491638795986622 recall=0.6145404663923183 f_measure=0.6752072343632253 true_positive_rate=0.6145404663923183 false_positive_rate=0.06605019815059446 true_positive_count=448 false_positive_count=150 true_negative_count=2121 false_negative_count=281\n"
]
}
],
"outputs": [],
"source": [
"ref = model.get_reference_datasets()[0]\n",
"cur1 = model.get_current_datasets()[0]"
Expand All @@ -42,7 +34,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "01d1caf034994d3a9a23cf305a00b148",
"model_id": "f0abbc9226bf4e33bc01b285b5be53ac",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -65,38 +57,6 @@
"))"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "788cce87-af03-4ae5-aac0-de0ec6144846",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d0f326b371bc49ec91b4e22e9269141b",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"VBox(children=(EChartsRawWidget(option={'grid': {'left': 0, 'right': 20, 'bottom': 0, 'top': 40, 'containLabel…"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from radicalbit_platform_sdk.charts import RadicalbitChart, RbitChartData\n",
"\n",
"RadicalbitChart().numerical_feature_chart(data=RbitChartData(\n",
" model=model,\n",
" reference=ref,\n",
" current=cur1\n",
"))"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/chart/multiclass_data_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "6f0da8755da649a19bf11ffc3f8e713c",
"model_id": "84407dbbcd154db59823e46a8b749fa2",
"version_major": 2,
"version_minor": 0
},
Expand Down
6 changes: 3 additions & 3 deletions sdk/tests/chart/multiclass_model_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9b075be5dd394101b93071e93a36ea99",
"model_id": "f80235f6d13945c9985a94a0c716c971",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"EChartsRawWidget(option={'yAxis': {'type': 'value', 'axisLabel': {'fontSize': 9, 'color': '#9b99a1'}, 'splitLi"
"VBox(children=(EChartsRawWidget(option={'yAxis': {'type': 'category', 'axisTick': {'show': False}, 'axisLine':"
]
},
"execution_count": 3,
Expand All @@ -50,7 +50,7 @@
"source": [
"from radicalbit_platform_sdk.charts import RadicalbitChart, RbitChartData\n",
"\n",
"RadicalbitChart().multiclass_recall_chart(data=RbitChartData(\n",
"RadicalbitChart().model_quality(data=RbitChartData(\n",
" model=model,\n",
" reference=ref,\n",
" current=cur1\n",
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/chart/regression_data_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bcd92fe076874ac7894aa1c2a6720cfc",
"model_id": "14b17675180b434097bf337ed51d8fef",
"version_major": 2,
"version_minor": 0
},
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/chart/regression_model_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ba1bac059164429fbe9baa613f95a822",
"model_id": "f66d37cb600f490184b2950342ec910b",
"version_major": 2,
"version_minor": 0
},
Expand Down

0 comments on commit efcb692

Please sign in to comment.