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 the doc error: module 'scipy.misc' has no attribute 'face' #25728

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/notebooks/convolutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@
}
],
"source": [
"from scipy import misc\n",
"from scipy import datasets\n",
"import jax.scipy as jsp\n",
"\n",
"fig, ax = plt.subplots(1, 3, figsize=(12, 5))\n",
"\n",
"# Load a sample image; compute mean() to convert from RGB to grayscale.\n",
"image = jnp.array(misc.face().mean(-1))\n",
"image = jnp.array(datasets.face().mean(-1))\n",
"ax[0].imshow(image, cmap='binary_r')\n",
"ax[0].set_title('original')\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/convolutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ For example, here is a simple approach to de-noising an image based on convoluti
:id: Jk5qdnbv6QgT
:outputId: 292205eb-aa09-446f-eec2-af8c23cfc718

from scipy import misc
from scipy import datasets
import jax.scipy as jsp

fig, ax = plt.subplots(1, 3, figsize=(12, 5))

# Load a sample image; compute mean() to convert from RGB to grayscale.
image = jnp.array(misc.face().mean(-1))
image = jnp.array(datasets.face().mean(-1))
ax[0].imshow(image, cmap='binary_r')
ax[0].set_title('original')

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pytest-xdist
# Packages used for notebook execution
matplotlib
scikit-learn
pooch
numpy
rich[jupyter]
cmake
Expand Down
Loading