GBM Examples Notebook¶
This notebook demonstrates MAE plots and comparisons for GBM samplers.
In [1]:
Copied!
import sys
from pathlib import Path
# Add the current directory to Python path to import local modules
notebook_dir = Path().resolve()
if str(notebook_dir) not in sys.path:
sys.path.insert(0, str(notebook_dir))
import sys
from pathlib import Path
# Add the current directory to Python path to import local modules
notebook_dir = Path().resolve()
if str(notebook_dir) not in sys.path:
sys.path.insert(0, str(notebook_dir))
In [2]:
Copied!
import matplotlib.pyplot as plt
from matplotlib.ticker import FixedLocator, FixedFormatter
import config as cf
import averaged_mae as am
import plot_util as pu
import matplotlib.pyplot as plt
from matplotlib.ticker import FixedLocator, FixedFormatter
import config as cf
import averaged_mae as am
import plot_util as pu
Configuration¶
Toggle debugging for the demo.
In [3]:
Copied!
cf.is_debug = False
cf.is_debug = False
Standardize figure size across the notebook (width, height) in inches:
In [4]:
Copied!
FIGSIZE = (6, 4)
plt.rcParams['figure.figsize'] = FIGSIZE
FIGSIZE = (6, 4)
plt.rcParams['figure.figsize'] = FIGSIZE