Skip to content

Instantly share code, notes, and snippets.

@karamanbk
Last active March 14, 2023 17:45
Show Gist options
  • Select an option

  • Save karamanbk/c7019ecbd32ab7370475727c0bf500e9 to your computer and use it in GitHub Desktop.

Select an option

Save karamanbk/c7019ecbd32ab7370475727c0bf500e9 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 52,
"metadata": {},
"outputs": [],
"source": [
"from datetime import datetime, timedelta,date\n",
"import pandas as pd\n",
"%matplotlib inline\n",
"from sklearn.metrics import classification_report,confusion_matrix\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import seaborn as sns\n",
"from __future__ import division\n",
"from sklearn.cluster import KMeans\n"
]
},
{
"cell_type": "code",
"execution_count": 53,
"metadata": {},
"outputs": [],
"source": [
"import plotly.plotly as py\n",
"import plotly.offline as pyoff\n",
"import plotly.graph_objs as go"
]
},
{
"cell_type": "code",
"execution_count": 54,
"metadata": {},
"outputs": [],
"source": [
"import sklearn\n",
"import xgboost as xgb\n",
"from sklearn.model_selection import KFold, cross_val_score, train_test_split\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\")"
]
},
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" <script type=\"text/javascript\">\n",
" window.PlotlyConfig = {MathJaxConfig: 'local'};\n",
" if (window.MathJax) {MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}\n",
" if (typeof require !== 'undefined') {\n",
" require.undef(\"plotly\");\n",
" define('plotly', function(require, exports, module) {\n",
" /**\n",
"* plotly.js v1.47.3\n",
"* Copyright 2012-2019, Plotly, Inc.\n",
"* All rights reserved.\n",
"* Licensed under the MIT license\n",
"*/\n",
@laleh-h
Copy link

laleh-h commented Aug 20, 2019

Great job! Thanks for sharing the notebook! was wondering if you could share the dataset you used for this analysis?

Thanks

@Jedrek369
Copy link

@ganshaoguan
Copy link

You did a great job! But I would like to ask how to evaluate the uplift model, AUC,AUUC,Qini or other else? Thank you for you reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment