Skip to content

Commit 0e77f46

Browse files
committed
fix ga
1 parent ad9a117 commit 0e77f46

File tree

1 file changed

+58
-10
lines changed

1 file changed

+58
-10
lines changed

notebooks/modeling.ipynb

Lines changed: 58 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,13 @@
545545
"text": [
546546
"/Users/raymondpan/zephyr/Zephyr-repo/venv/lib/python3.8/site-packages/sklearn/impute/_base.py:555: UserWarning: Skipping features without any observed values: [ 1 2 6 7 9 10 15 16 17 18]. At least one non-missing value is needed for imputation with strategy='mean'.\n",
547547
" warnings.warn(\n",
548-
"[GUIDE] Successfully performed set_feature_matrix.\n",
548+
"[GUIDE] STALE WARNING: set_feature_matrix.\n",
549+
"\tPerforming step 2 with set_feature_matrix.\n",
550+
"\tThis is a forward step via a set method.\n",
551+
"\tAll previous steps' results will be considered stale.\n",
552+
"[GUIDE] DONE: set_feature_matrix.\n",
549553
"\tYou can perform the next step by calling generate_train_test_split.\n",
550-
"[GUIDE] Successfully performed generate_train_test_split.\n",
554+
"[GUIDE] DONE: generate_train_test_split.\n",
551555
"\tYou can perform the next step by calling fit_pipeline.\n"
552556
]
553557
},
@@ -604,7 +608,16 @@
604608
"execution_count": 3,
605609
"id": "edffee03",
606610
"metadata": {},
607-
"outputs": [],
611+
"outputs": [
612+
{
613+
"name": "stderr",
614+
"output_type": "stream",
615+
"text": [
616+
"[GUIDE] DONE: fit_pipeline.\n",
617+
"\tYou can perform the next step by calling predict or evaluate.\n"
618+
]
619+
}
620+
],
608621
"source": [
609622
"hyperparameters = {\n",
610623
" \"xgboost.XGBClassifier#1\": {\n",
@@ -629,6 +642,15 @@
629642
"id": "78187756",
630643
"metadata": {},
631644
"outputs": [
645+
{
646+
"name": "stderr",
647+
"output_type": "stream",
648+
"text": [
649+
"[GUIDE] DONE: predict.\n",
650+
"\tYou have reached the end of the predictive engineering workflow.\n",
651+
"\tYou can call predict or evaluate again or re-perform previous steps based on results.\n"
652+
]
653+
},
632654
{
633655
"data": {
634656
"text/plain": [
@@ -644,6 +666,14 @@
644666
"zephyr.predict()"
645667
]
646668
},
669+
{
670+
"cell_type": "code",
671+
"execution_count": null,
672+
"id": "0c8440ee",
673+
"metadata": {},
674+
"outputs": [],
675+
"source": []
676+
},
647677
{
648678
"cell_type": "markdown",
649679
"id": "24cda971",
@@ -657,7 +687,17 @@
657687
"execution_count": 5,
658688
"id": "cd097853",
659689
"metadata": {},
660-
"outputs": [],
690+
"outputs": [
691+
{
692+
"name": "stderr",
693+
"output_type": "stream",
694+
"text": [
695+
"[GUIDE] DONE: evaluate.\n",
696+
"\tYou have reached the end of the predictive engineering workflow.\n",
697+
"\tYou can call predict or evaluate again or re-perform previous steps based on results.\n"
698+
]
699+
}
700+
],
661701
"source": [
662702
"res = zephyr.evaluate()"
663703
]
@@ -675,10 +715,10 @@
675715
" 'sklearn.metrics.precision_score': 0.5,\n",
676716
" 'sklearn.metrics.f1_score': 0.6666666666666666,\n",
677717
" 'sklearn.metrics.recall_score': 1.0,\n",
678-
" 'zephyr_ml.primitives.postprocessing.confusion_matrix': (array([[1, 1],\n",
718+
" 'zephyr_ml.primitives.evaluation.confusion_matrix': (array([[1, 1],\n",
679719
" [0, 1]]),\n",
680720
" <Figure size 640x480 with 2 Axes>),\n",
681-
" 'zephyr_ml.primitives.postprocessing.roc_auc_score_and_curve': (0.5,\n",
721+
" 'zephyr_ml.primitives.evaluation.roc_auc_score_and_curve': (0.5,\n",
682722
" <Figure size 640x480 with 1 Axes>)}"
683723
]
684724
},
@@ -719,13 +759,13 @@
719759
],
720760
"source": [
721761
"%matplotlib inline\n",
722-
"_, conf_matrix_fig = res[\"zephyr_ml.primitives.postprocessing.confusion_matrix\"]\n",
762+
"_, conf_matrix_fig = res[\"zephyr_ml.primitives.evaluation.confusion_matrix\"]\n",
723763
"conf_matrix_fig"
724764
]
725765
},
726766
{
727767
"cell_type": "code",
728-
"execution_count": 8,
768+
"execution_count": 9,
729769
"id": "d59e86b1",
730770
"metadata": {},
731771
"outputs": [
@@ -736,17 +776,25 @@
736776
"<Figure size 640x480 with 1 Axes>"
737777
]
738778
},
739-
"execution_count": 8,
779+
"execution_count": 9,
740780
"metadata": {},
741781
"output_type": "execute_result"
742782
}
743783
],
744784
"source": [
745785
"\n",
746-
"_, roc_fig = res[\"zephyr_ml.primitives.postprocessing.roc_auc_score_and_curve\"]\n",
786+
"_, roc_fig = res[\"zephyr_ml.primitives.evaluation.roc_auc_score_and_curve\"]\n",
747787
"\n",
748788
"roc_fig\n"
749789
]
790+
},
791+
{
792+
"cell_type": "code",
793+
"execution_count": null,
794+
"id": "38d109a1",
795+
"metadata": {},
796+
"outputs": [],
797+
"source": []
750798
}
751799
],
752800
"metadata": {

0 commit comments

Comments
 (0)