diff --git a/BHPD/01-DNN-Regression.ipynb b/BHPD/01-DNN-Regression.ipynb index 25ef77024279a2380ce17bffc402d6358b77c146..cf85e4762360ffc0232f7c385e9f789be9252b54 100644 --- a/BHPD/01-DNN-Regression.ipynb +++ b/BHPD/01-DNN-Regression.ipynb @@ -330,6 +330,7 @@ "source": [ "# ---- Suffle and Split => train, test\n", "#\n", + "data = data.sample(frac=1., axis=0)\n", "data_train = data.sample(frac=0.7, axis=0)\n", "data_test = data.drop(data_train.index)\n", "\n", @@ -1701,7 +1702,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.5" + "version": "3.8.10" } }, "nbformat": 4, diff --git a/BHPD/02-DNN-Regression-Premium.ipynb b/BHPD/02-DNN-Regression-Premium.ipynb index 53f75c076bab0aa19181d1b5afd0498a61f0f18c..3d8fde915c6ddcaaa1e2abaa2e27b62ee0992645 100644 --- a/BHPD/02-DNN-Regression-Premium.ipynb +++ b/BHPD/02-DNN-Regression-Premium.ipynb @@ -130,6 +130,7 @@ "source": [ "# ---- Split => train, test\n", "#\n", + "data = data.sample(frac=1., axis=0)\n", "data_train = data.sample(frac=0.7, axis=0)\n", "data_test = data.drop(data_train.index)\n", "\n", @@ -431,7 +432,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.9" + "version": "3.8.10" } }, "nbformat": 4,