|
@@ -111,7 +111,7 @@
|
|
|
"source": [
|
|
"source": [
|
|
|
"wd = os.getcwd() # working directory\n",
|
|
"wd = os.getcwd() # working directory\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
- "topic = \"bayes\"\n",
|
|
|
|
|
|
|
+ "topic = \"bayes_c\"\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
"if choice_setup == 0:\n",
|
|
"if choice_setup == 0:\n",
|
|
|
" #data_path = \"/home/marija/maki/\"\n",
|
|
" #data_path = \"/home/marija/maki/\"\n",
|
|
@@ -204,7 +204,7 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
"cell_type": "code",
|
|
"cell_type": "code",
|
|
|
- "execution_count": 7,
|
|
|
|
|
|
|
+ "execution_count": 1,
|
|
|
"id": "8262d64c",
|
|
"id": "8262d64c",
|
|
|
"metadata": {
|
|
"metadata": {
|
|
|
"executionInfo": {
|
|
"executionInfo": {
|
|
@@ -282,7 +282,9 @@
|
|
|
" # helper function to sample with replacement of same size sample\n",
|
|
" # helper function to sample with replacement of same size sample\n",
|
|
|
" R = lambda X: X[rng.integers(len(X), size=len(X))]\n",
|
|
" R = lambda X: X[rng.integers(len(X), size=len(X))]\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
- " ps = np.array([np.concatenate((myfitter(R(X_NC), fun, False), myfitter(R(X_AE), fun, False))) for _ in range(Nsamples)])\n",
|
|
|
|
|
|
|
+ " ps = np.array([np.concatenate((myfitter(R(X_NC), fun, False), \n",
|
|
|
|
|
+ " myfitter(R(X_AE), fun, False))) \n",
|
|
|
|
|
+ " for _ in range(Nsamples)])\n",
|
|
|
" elif bootstrapping == \"param\":\n",
|
|
" elif bootstrapping == \"param\":\n",
|
|
|
" # approximationg parameters with multivatiate distribution\n",
|
|
" # approximationg parameters with multivatiate distribution\n",
|
|
|
" Z = np.zeros((len(popt_NC), len(popt_AE)))\n",
|
|
" Z = np.zeros((len(popt_NC), len(popt_AE)))\n",
|