This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fig = plt.figure(figsize=(10,10)) # create figure | |
| ax0=fig.add_subplot(2, 1, 1) | |
| ax1=fig.add_subplot(2, 1, 2) | |
| # Customize subplots: | |
| ax0.set_xlabel(r'$w_a$', fontsize=25, labelpad=0) | |
| ax0.set_ylabel(r'$w_b$', fontsize=25, labelpad=-20) | |
| ax0.tick_params(axis='both', which='major', labelsize=17) | |
| ax1.set_xlabel("epochs", fontsize=22, labelpad=5) | |
| ax1.set_ylabel("costs", fontsize=25, labelpad=7) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fig = plt.figure(figsize=(10,10)) # create figure | |
| ax = fig.add_subplot(111,projection='3d' ) | |
| line_style=["dashed", "dashdot", "dotted"] #linestyles | |
| fontsize_=27 # set axis label fontsize | |
| labelsize_=17 # set tick label fontsize | |
| ax.view_init(elev=30, azim=-10) | |
| ax.set_xlabel(r'$w_a$', fontsize=fontsize_, labelpad=17) | |
| ax.set_ylabel(r'$w_b$', fontsize=fontsize_, labelpad=5) | |
| ax.set_zlabel("costs", fontsize=fontsize_, labelpad=-35) | |
| ax.tick_params(axis='x', pad=12, which='major', labelsize=labelsize_) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create animation of MSE-loss landscape: | |
| import matplotlib.animation as animation | |
| fig = plt.figure(figsize=(9,9)) # create figure | |
| label_font_size = 25 | |
| tick_label_size= 17 | |
| ax0=fig.add_subplot(111, projection="3d") | |
| ax0.tick_params(axis='both', which='major', labelsize=tick_label_size) | |
| ax0.set_xlabel(r'$w_0$', fontsize=label_font_size, labelpad=3) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.