Path: blob/master/notebooks/book2/17/makemoons_comparison.ipynb
1192 views
Kernel: Python 3 (ipykernel)
In [2]:
In [4]:
In [2]:
In [3]:
Out[3]:
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/probml_utils/plotting.py:25: UserWarning:LATEXIFY environment variable not set, not latexifying
Dataset Visualization
In [3]:
In [4]:
Out[4]:
In [5]:
Out[5]:
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
In [6]:
Out[6]:
In [7]:
In [8]:
Out[8]:
(112, 136)
In [9]:
In [10]:
Plotting functions
In [11]:
In [12]:
author: rohit-khoiwal-30
Model definition
In [16]:
Fit function
In [17]:
Single MLP
In [18]:
In [19]:
Train
In [38]:
In [39]:
Out[39]:
In [40]:
In [42]:
Out[42]:
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/probml_utils/plotting.py:84: UserWarning: set FIG_DIR environment variable to save figures
warnings.warn("set FIG_DIR environment variable to save figures")
In [43]:
Out[43]:
author: VibhutiBansal-11
Deep Ensemble
In [44]:
In [45]:
In [46]:
Out[46]:
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/probml_utils/plotting.py:84: UserWarning: set FIG_DIR environment variable to save figures
warnings.warn("set FIG_DIR environment variable to save figures")
In [47]:
In [48]:
Out[48]:
author: rohit-khoiwal-30
MC Dropout
In [49]:
In [50]:
In [51]:
Out[51]:
In [52]:
In [53]:
In [54]:
Out[54]:
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/probml_utils/plotting.py:84: UserWarning: set FIG_DIR environment variable to save figures
warnings.warn("set FIG_DIR environment variable to save figures")
author: haikookhandor
Bootstrap
In [55]:
In [56]:
In [57]:
Out[57]:
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/probml_utils/plotting.py:84: UserWarning: set FIG_DIR environment variable to save figures
warnings.warn("set FIG_DIR environment variable to save figures")
In [58]:
In [59]:
Out[59]:
author: AnandShegde
NUTS
In [22]:
In [27]:
Out[27]:
DeviceArray(-922.1937, dtype=float32)
In [28]:
Out[28]:
DeviceArray(-1999.243, dtype=float32)
In [29]:
Out[29]:
Running window adaptation
In [30]:
In [31]:
In [32]:
In [33]:
Out[33]:
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/probml_utils/plotting.py:84: UserWarning:set FIG_DIR environment variable to save figures
In [34]:
Out[34]:
author: Aadesh-1404
GP
In [65]:
Out[65]:
Name : gp_classification
Objective : 109.74521506042834
Number of Parameters : 2
Number of Optimization Parameters : 2
Updates : True
Parameters:
gp_classification. | value | constraints | priors
rbf.variance | 1.0 | +ve |
rbf.lengthscale | 1.0 | +ve |
-109.74521506042834
HBox(children=(VBox(children=(IntProgress(value=0, max=1000), HTML(value=''))), Box(children=(HTML(value=''),)…
Optimization restart 1/5, f = 57.934888758665295
Optimization restart 2/5, f = 76.65906248032223
Optimization restart 3/5, f = 87.87882199455757
Optimization restart 4/5, f = 90.42719594319007
Optimization restart 5/5, f = 73.69441627879621
Name : gp_classification
Objective : 77.00501290046213
Number of Parameters : 2
Number of Optimization Parameters : 2
Updates : True
Parameters:
gp_classification. | value | constraints | priors
rbf.variance | 13.753804831925242 | +ve |
rbf.lengthscale | 0.7116832623066411 | +ve |
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/GPy/plotting/matplot_dep/plot_definitions.py:184: UserWarning:The following kwargs were not used by contour: 'label', 'linewidth'
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py:4459: 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.
In [65]:
In [66]:
Out[66]:
/home/anand/Desktop/ML/probml-utils/probml_utils/plotting.py:80: UserWarning:set FIG_DIR environment variable to save figures
In [67]:
Out[67]:
/home/anand/Desktop/ML/probml-utils/probml_utils/plotting.py:80: UserWarning:set FIG_DIR environment variable to save figures
SNGP
In [71]:
In [72]:
In [73]:
In [74]:
In [75]:
In [76]:
In [78]:
In [79]:
Out[79]:
2022-07-27 00:04:01.537787: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2022-07-27 00:04:01.537867: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
In [81]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
/home/anand/Desktop/ML/probml-utils/probml_utils/plotting.py:70: UserWarning: renaming ./figures/SNGP Moons.pdf to ./figures/SNGP Moons_latexified.pdf because LATEXIFY is True
f"renaming {fname_full} to {fname}{extention} because LATEXIFY is {LATEXIFY}",
saving image to ./figures/SNGP Moons_latexified.pdf
Figure size: [2.5 2. ]
In [ ]:
In [ ]:
In [ ]:
saving image to ./figures/SNGP_caliberation_latexified.pdf
Figure size: [2.5 2. ]
/home/anand/Desktop/ML/probml-utils/probml_utils/plotting.py:70: UserWarning: renaming ./figures/SNGP_caliberation.pdf to ./figures/SNGP_caliberation_latexified.pdf because LATEXIFY is True
f"renaming {fname_full} to {fname}{extention} because LATEXIFY is {LATEXIFY}",
author: shobro
VI
In [17]:
In [18]:
In [19]:
In [20]:
In [21]:
In [22]:
In [23]:
Out[23]:
0.028
In [24]:
Out[24]:
In [26]:
Out[26]:
/home/anand/anaconda3/envs/srip/lib/python3.7/site-packages/probml_utils/plotting.py:84: UserWarning:set FIG_DIR environment variable to save figures