Skip to content

Commit

Permalink
removed np.NINF from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiguender committed Oct 8, 2024
1 parent dd515ef commit 1af1053
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions _proc/99_unitTests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4334,7 +4334,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
"\n",
"lowerBoundPerBinTest = [np.NINF, 9.5, 19.5, 29.5, 39.5, 49.5, 59.5, 69.5, 79.5, 89.5]\n",
"lowerBoundPerBinTest = [-np.inf, 9.5, 19.5, 29.5, 39.5, 49.5, 59.5, 69.5, 79.5, 89.5]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(10)])\n",
"\n",
Expand Down Expand Up @@ -4376,7 +4376,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF] + list(np.arange(4.5, 99.5, 5))\n",
"lowerBoundPerBinTest = [-np.inf] + list(np.arange(4.5, 99.5, 5))\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(20)])\n",
"\n",
Expand All @@ -4402,7 +4402,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF, 2.5, 5.5]\n",
"lowerBoundPerBinTest = [-np.inf, 2.5, 5.5]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(3)])\n",
"\n",
Expand All @@ -4426,7 +4426,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF]\n",
"lowerBoundPerBinTest = [-np.inf]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(1)])\n",
"\n",
Expand All @@ -4450,7 +4450,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF]\n",
"lowerBoundPerBinTest = [-np.inf]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(1)])"
]
Expand Down
Binary file modified dddex/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/_modidx.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/baseClasses.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/crossValidation.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/levelSetKDEx_multivariate.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/levelSetKDEx_univariate.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/loadData.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/utils.cpython-38.pyc
Binary file not shown.
Binary file modified dddex/__pycache__/wSAA.cpython-38.pyc
Binary file not shown.
10 changes: 5 additions & 5 deletions nbs/.ipynb_checkpoints/99_unitTests-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4313,7 +4313,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
"\n",
"lowerBoundPerBinTest = [np.NINF, 9.5, 19.5, 29.5, 39.5, 49.5, 59.5, 69.5, 79.5, 89.5]\n",
"lowerBoundPerBinTest = [-np.inf, 9.5, 19.5, 29.5, 39.5, 49.5, 59.5, 69.5, 79.5, 89.5]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(10)])\n",
"\n",
Expand Down Expand Up @@ -4355,7 +4355,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF] + list(np.arange(4.5, 99.5, 5))\n",
"lowerBoundPerBinTest = [-np.inf] + list(np.arange(4.5, 99.5, 5))\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(20)])\n",
"\n",
Expand All @@ -4381,7 +4381,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF, 2.5, 5.5]\n",
"lowerBoundPerBinTest = [-np.inf, 2.5, 5.5]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(3)])\n",
"\n",
Expand All @@ -4405,7 +4405,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF]\n",
"lowerBoundPerBinTest = [-np.inf]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(1)])\n",
"\n",
Expand All @@ -4429,7 +4429,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF]\n",
"lowerBoundPerBinTest = [-np.inf]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(1)])"
]
Expand Down
10 changes: 5 additions & 5 deletions nbs/99_unitTests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4313,7 +4313,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
"\n",
"lowerBoundPerBinTest = [np.NINF, 9.5, 19.5, 29.5, 39.5, 49.5, 59.5, 69.5, 79.5, 89.5]\n",
"lowerBoundPerBinTest = [-np.inf, 9.5, 19.5, 29.5, 39.5, 49.5, 59.5, 69.5, 79.5, 89.5]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(10)])\n",
"\n",
Expand Down Expand Up @@ -4355,7 +4355,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF] + list(np.arange(4.5, 99.5, 5))\n",
"lowerBoundPerBinTest = [-np.inf] + list(np.arange(4.5, 99.5, 5))\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(20)])\n",
"\n",
Expand All @@ -4381,7 +4381,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF, 2.5, 5.5]\n",
"lowerBoundPerBinTest = [-np.inf, 2.5, 5.5]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(3)])\n",
"\n",
Expand All @@ -4405,7 +4405,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF]\n",
"lowerBoundPerBinTest = [-np.inf]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(1)])\n",
"\n",
Expand All @@ -4429,7 +4429,7 @@
"test_eq(len(indicesTracker), len(np.unique(indicesTracker)))\n",
"test_eq(np.sort(indicesTracker), np.arange(len(yPred)))\n",
" \n",
"lowerBoundPerBinTest = [np.NINF]\n",
"lowerBoundPerBinTest = [-np.inf]\n",
"test_eq(list(lowerBoundPerBin), lowerBoundPerBinTest)\n",
"test_eq(list(lowerBoundPerBin.index), [i for i in range(1)])"
]
Expand Down

0 comments on commit 1af1053

Please sign in to comment.