Path: blob/master/notebooks/book2/18/deepgp_stepdata.ipynb
1193 views
Kernel: Python 3
Step Data using Deep Gaussian Process
In [1]:
Out[1]:
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
RuntimeError: module was compiled against NumPy C-API version 0x10 (NumPy 1.23) but the running NumPy has C-API version 0xf. Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem.
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:25: UserWarning:LATEXIFY environment variable not set, not latexifying
Step Data
In [2]:
Out[2]:
2024-11-23 17:51:56.411379: W external/xla/xla/service/gpu/nvptx_compiler.cc:893] The NVIDIA driver's CUDA version is 12.2 which is older than the PTX compiler version 12.6.77. Because the driver is older than the PTX compiler version, XLA is disabling parallel compilation, which may slow down compilation. You should update your NVIDIA driver or use the NVIDIA-provided CUDA forward compatibility packages.
(-2.0, 2.0)
GPy
In [3]:
Plotting GP Fit
In [5]:
Out[5]:
Deep GP
In [6]:
Optimizing Deep GP
In [7]:
Out[7]:
HBox(children=(VBox(children=(IntProgress(value=0, max=10000), HTML(value=''))), Box(children=(HTML(value=''),…
In [8]:
Out[8]:
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
Samples from Data
In [9]:
Plot Deep GP fit without samples
In [10]:
Out[10]:
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:25: UserWarning:LATEXIFY environment variable not set, not latexifying
Plot Deep GP fit with samples
In [11]:
Out[11]:
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:84: UserWarning:set FIG_DIR environment variable to save figures
Plot Input to each Deep GP layers
In [12]:
Out[12]:
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:84: UserWarning:set FIG_DIR environment variable to save figures
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:25: UserWarning:LATEXIFY environment variable not set, not latexifying
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:84: UserWarning:set FIG_DIR environment variable to save figures
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:25: UserWarning:LATEXIFY environment variable not set, not latexifying
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:84: UserWarning:set FIG_DIR environment variable to save figures
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:25: UserWarning:LATEXIFY environment variable not set, not latexifying
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/jax/_src/numpy/array_methods.py:68: UserWarning:Explicitly requested dtype float requested in astype is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
/usr/local/lib/python3.10/dist-packages/probml_utils/plotting.py:84: UserWarning:set FIG_DIR environment variable to save figures