From e134c8d6183c62940ca49542155e7326f49d1f88 Mon Sep 17 00:00:00 2001 From: rayanahmax Date: Mon, 27 Jul 2026 19:13:11 +0530 Subject: [PATCH] churn prediction --- .github/workflows/fail.yml | 7 +++ module3_ChurnPrediction/churnPrediction.ipynb | 46 ++++++++++++++++++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/fail.yml diff --git a/.github/workflows/fail.yml b/.github/workflows/fail.yml new file mode 100644 index 0000000..996e049 --- /dev/null +++ b/.github/workflows/fail.yml @@ -0,0 +1,7 @@ +name: Intentionally Fail +on: [pull_request] +jobs: + break: + runs-on: ubuntu-latest + steps: + - run: exit 1 diff --git a/module3_ChurnPrediction/churnPrediction.ipynb b/module3_ChurnPrediction/churnPrediction.ipynb index 4400b48..63e39bc 100644 --- a/module3_ChurnPrediction/churnPrediction.ipynb +++ b/module3_ChurnPrediction/churnPrediction.ipynb @@ -5823,9 +5823,53 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 374, "id": "3c3c6a13", "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "np.float64(0.5647668393782384)" + ] + }, + "execution_count": 374, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "tpr = tp/(tp+fn)\n", + "tpr" + ] + }, + { + "cell_type": "code", + "execution_count": 376, + "id": "154ebe2c", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "np.float64(0.10263929618768329)" + ] + }, + "execution_count": 376, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "fpr = fp/(fp+tn)\n", + "fpr" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "0d25ab77", + "metadata": {}, "outputs": [], "source": [] }