diff --git a/recipes/1-Insights/conditioned-insights.ipynb b/recipes/1-Insights/conditioned-insights.ipynb index b11322d..31e314a 100644 --- a/recipes/1-Insights/conditioned-insights.ipynb +++ b/recipes/1-Insights/conditioned-insights.ipynb @@ -138,11 +138,11 @@ { "data": { "text/plain": [ - "accuracy 0.777000\n", - "mae 0.354432\n", - "mcc 0.371769\n", - "precision 0.682248\n", - "recall 0.689594\n", + "accuracy 0.834000\n", + "mae 0.259042\n", + "mcc 0.539410\n", + "precision 0.799174\n", + "recall 0.743139\n", "Name: target, dtype: float64" ] }, @@ -180,7 +180,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 8, "metadata": { "execution": { "iopub.execute_input": "2025-12-05T17:44:15.753882Z", @@ -193,15 +193,15 @@ { "data": { "text/plain": [ - "recall 0.500000\n", - "mae 0.364800\n", - "accuracy 0.705882\n", - "precision 0.352941\n", "mcc 0.000000\n", + "precision 0.423077\n", + "recall 0.500000\n", + "mae 0.177199\n", + "accuracy 0.846154\n", "Name: target, dtype: float64" ] }, - "execution_count": 5, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -216,8 +216,8 @@ " }\n", ")\n", "\n", - "local_stats = results['details']['prediction_stats'][0].loc['target']\n", - "local_stats.dropna()" + "local_stats = results['details']['prediction_stats'][0]['target'].dropna()\n", + "local_stats" ] }, { @@ -267,8 +267,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "Female accuracy: 81%\n", - "Male accuracy: 73%\n" + "Female accuracy: 88%\n", + "Male accuracy: 77%\n" ] } ], @@ -324,8 +324,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "Female accuracy: 82%\n", - "Male accuracy: 69%\n" + "Female accuracy: 89%\n", + "Male accuracy: 76%\n" ] } ], @@ -359,7 +359,7 @@ ], "metadata": { "kernelspec": { - "display_name": "engine_rec_312", + "display_name": "engine-recipes-3.12", "language": "python", "name": "python3" }, @@ -373,7 +373,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.19" + "version": "3.12.1" } }, "nbformat": 4, diff --git a/recipes/4-Examples/extra_examples/json_features.ipynb b/recipes/4-Examples/extra_examples/json_features.ipynb index 75e029a..ea5fc22 100644 --- a/recipes/4-Examples/extra_examples/json_features.ipynb +++ b/recipes/4-Examples/extra_examples/json_features.ipynb @@ -324,7 +324,7 @@ { "data": { "text/plain": [ - "0 null\n", + "0 {\"saddle\":1,\"lute\":1,\"potion\":5}\n", "Name: inventory, dtype: object" ] }, @@ -370,11 +370,11 @@ { "data": { "text/plain": [ - "0 null\n", - "1 null\n", - "2 null\n", - "3 null\n", - "4 null\n", + "0 {\"metal bar\":20,\"saddle\":1,\"hammer\":1,\"potion\":1}\n", + "1 {\"metal bar\":20,\"trident\":2,\"potion\":1}\n", + "2 {\"potion\":2}\n", + "3 {\"metal bar\":20,\"saddle\":1,\"hammer\":1,\"potion\":1}\n", + "4 {\"trident\":2,\"hammer\":1,\"potion\":5}\n", "Name: inventory, dtype: object" ] }, @@ -416,11 +416,11 @@ { "data": { "text/plain": [ - "0 null\n", - "1 null\n", - "2 null\n", - "3 null\n", - "4 null\n", + "0 {\"saddle\":1,\"potion\":1}\n", + "1 {\"metal bar\":20,\"saddle\":1,\"potion\":1}\n", + "2 {\"saddle\":1,\"lute\":1,\"potion\":1}\n", + "3 {\"metal bar\":20,\"hammer\":1,\"potion\":1}\n", + "4 {\"potion\":1}\n", "Name: inventory, dtype: object" ] }, @@ -493,7 +493,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.19" + "version": "3.12.1" } }, "nbformat": 4,