diff --git a/example/SampleMethods/STS/STS_Example1.ipynb b/example/SampleMethods/STS/STS_Example1.ipynb index f8767c7cf..0d6450dcd 100644 --- a/example/SampleMethods/STS/STS_Example1.ipynb +++ b/example/SampleMethods/STS/STS_Example1.ipynb @@ -58,8 +58,7 @@ } ], "source": [ - "from UQpy.SampleMethods.Strata.rectangular import RectangularStrata\n", - "from UQpy.SampleMethods.STS.rectangular import RectangularSTS\n", + "from UQpy.SampleMethods import *\n", "from UQpy.Distributions import Exponential\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", diff --git a/example/Surrogates/PCE/PCE_Example6.ipynb b/example/Surrogates/PCE/PCE_Example6.ipynb index 1e2353ce6..1d189a09d 100644 --- a/example/Surrogates/PCE/PCE_Example6.ipynb +++ b/example/Surrogates/PCE/PCE_Example6.ipynb @@ -186,7 +186,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -211,9 +211,19 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Error from least squares regression is: 0.0510225\n", + "Error from LASSO is: 0.0507776\n", + "Error from Ridge is: 0.0503678\n" + ] + } + ], "source": [ "n_samples = 500\n", "x_val = joint.rvs(n_samples)\n", @@ -243,9 +253,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Moments from least squares regression : (9.9848, 92.7136)\n", + "Moments from LASSO regression : (9.9842, 92.6511)\n", + "Moments from Ridge regression : (9.9593, 91.8614)\n", + "Moments from MC integration: (10.018975, 92.526962)\n" + ] + } + ], "source": [ "n_mc = 1000000\n", "x_mc = joint.rvs(n_mc)\n",