Skip to content

Commit

Permalink
Updated in Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
ziatdinovmax committed Apr 3, 2020
1 parent 6946a94 commit 72a76bc
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions examples/notebooks/GP_BEPFM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/ziatdinovmax/GPim/blob/dev/examples/notebooks/GP_BEPFM.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
"<a href=\"https://colab.research.google.com/github/ziatdinovmax/GPim/blob/master/examples/notebooks/GP_BEPFM.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
Expand Down Expand Up @@ -147,7 +147,7 @@
"# download training data\n",
"!wget -qq -O 'BEPFM image_0001 - 128 x 128.h5' 'https://github.com/ziatdinovmax/GPim/blob/master/expdata/BEPFM%20image_0001%20-%20128%20x%20128.h5?raw=true'"
],
"execution_count": 1,
"execution_count": 0,
"outputs": [
{
"output_type": "stream",
Expand Down Expand Up @@ -235,7 +235,7 @@
"hf = h5py.File(os.path.join(datadir, filename), 'r')\n",
"inspect_dataset(hf)"
],
"execution_count": 3,
"execution_count": 0,
"outputs": [
{
"output_type": "stream",
Expand Down Expand Up @@ -354,7 +354,7 @@
"print('reshaped data dimensions: {}'.format(raw_data.shape))\n",
"#hf.close()"
],
"execution_count": 4,
"execution_count": 0,
"outputs": [
{
"output_type": "stream",
Expand Down Expand Up @@ -400,7 +400,7 @@
"# Plotting\n",
"gprutils.plot_raw_data(raw_data, slice_number, pos, spectral_window)"
],
"execution_count": 5,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -464,7 +464,7 @@
"R_true = (R_true - np.amin(R_true))/np.ptp(R_true)\n",
"gprutils.plot_raw_data(R_true, slice_number, pos, spectral_window)"
],
"execution_count": 6,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -510,7 +510,7 @@
"X, R = gprutils.corrupt_data_xy(X_true, R_true, prob=remove_obs)\n",
"gprutils.plot_raw_data(R, slice_number, pos, spectral_window, norm=True)"
],
"execution_count": 7,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -580,7 +580,7 @@
")\n",
"mean, sd, hyperparams = reconstr.run()"
],
"execution_count": 8,
"execution_count": 0,
"outputs": [
{
"output_type": "stream",
Expand Down Expand Up @@ -627,7 +627,7 @@
"source": [
"gprutils.plot_kernel_hyperparams(hyperparams)"
],
"execution_count": 9,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -669,7 +669,7 @@
"source": [
"gprutils.plot_inducing_points(hyperparams, slice_step=2)"
],
"execution_count": 10,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -709,7 +709,7 @@
"source": [
"gprutils.plot_reconstructed_data3d(R, mean, sd, slice_number, pos, spectral_window)"
],
"execution_count": 11,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -864,7 +864,7 @@
" np.save(os.path.join(\n",
" SAVE_DIR, 'sgpr_bepfm_amax_4.npy'), uncert_idx_all)"
],
"execution_count": 13,
"execution_count": 0,
"outputs": [
{
"output_type": "stream",
Expand Down Expand Up @@ -2010,7 +2010,7 @@
" R_all, mean_all, sd_all, R_true, steps,\n",
" slice_number, pos, dist_edge, spec_window)"
],
"execution_count": 14,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -2081,7 +2081,7 @@
"clrbar_.set_label('Exploration steps', fontsize=14, labelpad=10)\n",
"plt.show()"
],
"execution_count": 15,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down Expand Up @@ -2142,7 +2142,7 @@
"plt.legend(fontsize=16)\n",
"plt.show()"
],
"execution_count": 16,
"execution_count": 0,
"outputs": [
{
"output_type": "display_data",
Expand Down

0 comments on commit 72a76bc

Please sign in to comment.