From 1af105332571f66d7e2e70f88ea75a4c2b42b011 Mon Sep 17 00:00:00 2001 From: kaiguender Date: Wed, 9 Oct 2024 00:14:16 +0200 Subject: [PATCH] removed np.NINF from unit tests --- _proc/99_unitTests.ipynb | 10 +++++----- dddex/__pycache__/__init__.cpython-38.pyc | Bin 125 -> 125 bytes dddex/__pycache__/_modidx.cpython-38.pyc | Bin 12526 -> 12526 bytes dddex/__pycache__/baseClasses.cpython-38.pyc | Bin 7707 -> 7707 bytes .../crossValidation.cpython-38.pyc | Bin 18248 -> 18248 bytes .../levelSetKDEx_multivariate.cpython-38.pyc | Bin 20659 -> 20659 bytes .../levelSetKDEx_univariate.cpython-38.pyc | Bin 27652 -> 27652 bytes dddex/__pycache__/loadData.cpython-38.pyc | Bin 1653 -> 1653 bytes dddex/__pycache__/utils.cpython-38.pyc | Bin 6056 -> 6056 bytes dddex/__pycache__/wSAA.cpython-38.pyc | Bin 8610 -> 8610 bytes .../99_unitTests-checkpoint.ipynb | 10 +++++----- nbs/99_unitTests.ipynb | 10 +++++----- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/_proc/99_unitTests.ipynb b/_proc/99_unitTests.ipynb index 3967bf5..9a07e21 100644 --- a/_proc/99_unitTests.ipynb +++ b/_proc/99_unitTests.ipynb @@ -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", @@ -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", @@ -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", @@ -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", @@ -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)])" ] diff --git a/dddex/__pycache__/__init__.cpython-38.pyc b/dddex/__pycache__/__init__.cpython-38.pyc index b59f17a2fa0cbffe76dd50659fc1015d495ad207..5d7b199e11ade648c37b1de86db45e55ce22f22b 100644 GIT binary patch delta 16 Wcmb=ev!mx}=i=B(SuW#v!mx}=imaf^zW#b8n6qvp*UA6@MMDNG delta 21 bcmdnIka6=uMy^m^UM>b8Sh{8-*UA6@MQ;W( diff --git a/dddex/__pycache__/levelSetKDEx_univariate.cpython-38.pyc b/dddex/__pycache__/levelSetKDEx_univariate.cpython-38.pyc index 7b35cb8f2245a0983adefa2507340a66859a898d..879897133df3cdce7feac45761393043569f7614 100644 GIT binary patch delta 21 bcmZpv!mx}=iX0O}G^(z|yM#KiE delta 21 bcmZpv!mx}=imaf^z^(z|yM)n4; diff --git a/dddex/__pycache__/loadData.cpython-38.pyc b/dddex/__pycache__/loadData.cpython-38.pyc index bc62e3352d371b743d36ebd331a5e73626f4f88a..11c43ab0c71eb18aa5d33c1e0757c8e0403807c0 100644 GIT binary patch delta 19 Zcmey$^Oc7yl$V!_0SM--+sKv81^_kM1pEL1 delta 19 Zcmey$^Oc7yl$V!_0SK0^*~pd61^_k&1p@#8 diff --git a/dddex/__pycache__/utils.cpython-38.pyc b/dddex/__pycache__/utils.cpython-38.pyc index 087df7162edb950024a592d498a72bcae4f8ecd3..5709ca91fbaffed79b0c447fa9761082ae52e93d 100644 GIT binary patch delta 223 zcmZ3Xze1lYl$V!_0SM--+sMVi$#`qCFef`Jqs3%tJ`X83p!iEBAfd@!Bn_l)v6bd! z7M7+KSx>IzlQ6IW3KhwM2wMBm z@$s-Qx=#Ktq{HYtSw~o&HxMKq0wgpUi@YXB2)i))Or9&O4|L91;d(Y#u