Skip to content

Commit

Permalink
Revert tutorials for importing posterior_nn until new release
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Apr 9, 2024
1 parent c9df2c0 commit 0f0ee6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions sbi/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@
validate_theta_and_x,
)
from sbi.utils.user_input_checks_utils import MultipleIndependent
from sbi.utils.get_nn_models import posterior_nn, likelihood_nn, classifier_nn
6 changes: 3 additions & 3 deletions tutorials/04_density_estimators.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"outputs": [],
"source": [
"# For SNLE: likelihood_nn(). For SNRE: classifier_nn()\n",
"from sbi.neural_nets import posterior_nn\n",
"from sbi.utils import posterior_nn\n",
"\n",
"density_estimator_build_fun = posterior_nn(\n",
" model=\"nsf\", hidden_features=60, num_transforms=3\n",
Expand Down Expand Up @@ -131,7 +131,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -145,7 +145,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.18"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion tutorials/05_embedding_net.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"metadata": {},
"outputs": [],
"source": [
"from sbi.neural_nets import posterior_nn\n",
"from sbi.utils import posterior_nn\n",
"\n",
"# instantiate the neural density estimator\n",
"neural_posterior = posterior_nn(model=\"maf\", embedding_net=embedding_net)\n",
Expand Down

0 comments on commit 0f0ee6e

Please sign in to comment.