Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed import statement for falsification sampler #658

Merged
merged 2 commits into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/tutorials/Experimentalist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading