From 886a430fe89441b94365f5e756816921aae16ffc Mon Sep 17 00:00:00 2001 From: Sebastian Musslick Date: Wed, 2 Oct 2024 17:32:10 +0200 Subject: [PATCH 1/2] fixed import statement for falsification sampler --- docs/tutorials/Experimentalist.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/Experimentalist.ipynb b/docs/tutorials/Experimentalist.ipynb index 17a9e9355..f7a0a6ebe 100644 --- a/docs/tutorials/Experimentalist.ipynb +++ b/docs/tutorials/Experimentalist.ipynb @@ -43,7 +43,7 @@ "import numpy as np\n", "from sklearn.linear_model import LinearRegression\n", "from autora.variable import DV, IV, ValueType, VariableCollection\n", - "from autora.experimentalist.sampler.falsification import falsification_sample, falsification_score_sample" + "from autora.experimentalist.falsification import falsification_sample, falsification_score_sample" ] }, { From 87f542131d2f4868d28f2c628d02ca82f570521e Mon Sep 17 00:00:00 2001 From: Sebastian Musslick Date: Wed, 2 Oct 2024 17:40:40 +0200 Subject: [PATCH 2/2] fixed input argument of falsification sampler --- docs/tutorials/Experimentalist.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/Experimentalist.ipynb b/docs/tutorials/Experimentalist.ipynb index f7a0a6ebe..cf85b6bcd 100644 --- a/docs/tutorials/Experimentalist.ipynb +++ b/docs/tutorials/Experimentalist.ipynb @@ -151,7 +151,7 @@ "X_prime = np.linspace(0, 6.5, 14)\n", "\n", "new_conditions = falsification_sample(\n", - " condition_pool=X_prime,\n", + " conditions=X_prime,\n", " model=model,\n", " reference_conditions=X,\n", " reference_observations=Y,\n", @@ -230,7 +230,7 @@ "outputs": [], "source": [ "new_conditions, scores = falsification_score_sample(\n", - " condition_pool=X_prime,\n", + " conditions=X_prime,\n", " model=model,\n", " reference_conditions=X,\n", " reference_observations=Y,\n", @@ -353,7 +353,7 @@ "outputs": [], "source": [ "new_conditions = falsification_sample(\n", - " condition_pool=X_prime,\n", + " conditions=X_prime,\n", " model=model,\n", " reference_conditions=X,\n", " reference_observations=Y,\n", @@ -517,7 +517,7 @@ ], "source": [ "new_conditions, scores = falsification_score_sample(\n", - " condition_pool=X_prime,\n", + " conditions=X_prime,\n", " model=model,\n", " reference_conditions=X,\n", " reference_observations=Y,\n", @@ -692,7 +692,7 @@ ], "source": [ "new_conditions = falsification_sample(\n", - " condition_pool=X_prime,\n", + " conditions=X_prime,\n", " model=model,\n", " reference_conditions=X,\n", " reference_observations=Y,\n",