Skip to content

Commit e49ed21

Browse files
committed
switch wvpy uses to wvu
1 parent f55ebc5 commit e49ed21

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

examples/example_cross_plan.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
},
99
"outputs": [],
1010
"source": [
11-
"import wvpy.util\n",
11+
"import wvu.util\n",
1212
"\n",
13-
"wvpy.util.mk_cross_plan(10, 3)\n"
13+
"wvu.util.mk_cross_plan(10, 3)\n"
1414
]
1515
}
1616
],

examples/example_cross_plan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
import wvpy.util
2+
import wvu.util
33

4-
wvpy.util.mk_cross_plan(10, 3)
4+
wvu.util.mk_cross_plan(10, 3)
55

66

examples/example_graphs.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"source": [
1111
"import numpy\n",
1212
"import pandas\n",
13-
"import wvpy.util\n"
13+
"import wvu.util\n"
1414
]
1515
},
1616
{
@@ -50,7 +50,7 @@
5050
" 'y': [False, False, True, True, False]\n",
5151
"})\n",
5252
"\n",
53-
"wvpy.util.plot_roc(\n",
53+
"wvu.util.plot_roc(\n",
5454
" prediction=d['x'],\n",
5555
" istrue=d['y'],\n",
5656
" extra_points=pandas.DataFrame({\n",
@@ -88,7 +88,7 @@
8888
" 'y': [False, False, True, True, False]\n",
8989
"})\n",
9090
"\n",
91-
"wvpy.util.dual_density_plot(\n",
91+
"wvu.util.dual_density_plot(\n",
9292
" probs=d['x'],\n",
9393
" istrue=d['y'],\n",
9494
")"
@@ -128,7 +128,7 @@
128128
" 'y': [False, False, True, True, False]\n",
129129
"})\n",
130130
"\n",
131-
"wvpy.util.dual_hist_plot(\n",
131+
"wvu.util.dual_hist_plot(\n",
132132
" probs=d['x'],\n",
133133
" istrue=d['y'],\n",
134134
")"
@@ -148,7 +148,7 @@
148148
" 'y': [0, 0, 1, 1, 0]\n",
149149
"})\n",
150150
"\n",
151-
"wvpy.util.gain_curve_plot(\n",
151+
"wvu.util.gain_curve_plot(\n",
152152
" prediction=d['x'],\n",
153153
" outcome=d['y'],\n",
154154
")\n"
@@ -181,7 +181,7 @@
181181
" 'y': [0, 0, 1, 1, 0]\n",
182182
"})\n",
183183
"\n",
184-
"wvpy.util.lift_curve_plot(\n",
184+
"wvu.util.lift_curve_plot(\n",
185185
" prediction=d['x'],\n",
186186
" outcome=d['y'],\n",
187187
")"
@@ -227,7 +227,7 @@
227227
" 'y': [False, False, True, True, False]\n",
228228
"})\n",
229229
"\n",
230-
"wvpy.util.threshold_plot(\n",
230+
"wvu.util.threshold_plot(\n",
231231
" d,\n",
232232
" pred_var='x',\n",
233233
" truth_var='y',\n",
@@ -262,7 +262,7 @@
262262
" 'y': [False, False, True, True, False]\n",
263263
"})\n",
264264
"\n",
265-
"wvpy.util.threshold_plot(\n",
265+
"wvu.util.threshold_plot(\n",
266266
" d,\n",
267267
" pred_var='x',\n",
268268
" truth_var='y',\n",
@@ -299,7 +299,7 @@
299299
"d['x0'] = 1 - d['x']\n",
300300
"pmat = numpy.asarray(d.loc[:, ['x0', 'x']])\n",
301301
"\n",
302-
"wvpy.util.dual_density_plot_proba1(\n",
302+
"wvu.util.dual_density_plot_proba1(\n",
303303
" probs=pmat,\n",
304304
" istrue=d['y'],\n",
305305
")"
@@ -341,7 +341,7 @@
341341
"d['x0'] = 1 - d['x']\n",
342342
"pmat = numpy.asarray(d.loc[:, ['x0', 'x']])\n",
343343
"\n",
344-
"wvpy.util.dual_hist_plot_proba1(\n",
344+
"wvu.util.dual_hist_plot_proba1(\n",
345345
" probs=pmat,\n",
346346
" istrue=d['y'],\n",
347347
")"

examples/graph.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
],
1919
"source": [
2020
"import pandas\n",
21-
"import wvpy.util\n",
21+
"import wvu.util\n",
2222
"\n",
23-
"wvpy.__version__"
23+
"wvu.__version__"
2424
]
2525
},
2626
{
@@ -68,7 +68,7 @@
6868
}
6969
],
7070
"source": [
71-
"wvpy.util.threshold_plot(\n",
71+
"wvu.util.threshold_plot(\n",
7272
" d,\n",
7373
" pred_var='x',\n",
7474
" truth_var='y',\n",
@@ -98,7 +98,7 @@
9898
}
9999
],
100100
"source": [
101-
"wvpy.util.threshold_plot(\n",
101+
"wvu.util.threshold_plot(\n",
102102
" d,\n",
103103
" pred_var='x',\n",
104104
" truth_var='y',\n",
@@ -128,7 +128,7 @@
128128
}
129129
],
130130
"source": [
131-
"wvpy.util.threshold_plot(\n",
131+
"wvu.util.threshold_plot(\n",
132132
" d,\n",
133133
" pred_var='x',\n",
134134
" truth_var='y',\n",
@@ -160,7 +160,7 @@
160160
],
161161
"source": [
162162
"try:\n",
163-
" wvpy.util.threshold_plot(\n",
163+
" wvu.util.threshold_plot(\n",
164164
" d,\n",
165165
" pred_var='x',\n",
166166
" truth_var='y',\n",

examples/stats.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
],
2525
"source": [
2626
"import pandas\n",
27-
"import wvpy.util\n",
27+
"import wvu.util\n",
2828
"\n",
29-
"wvpy.__version__"
29+
"wvu.__version__"
3030
],
3131
"metadata": {
3232
"collapsed": false,
@@ -79,7 +79,7 @@
7979
}
8080
],
8181
"source": [
82-
"stats = wvpy.util.threshold_statistics(\n",
82+
"stats = wvu.util.threshold_statistics(\n",
8383
" d,\n",
8484
" model_predictions='x',\n",
8585
" yvalues='y',\n",

0 commit comments

Comments
 (0)