Skip to content

Instantly share code, notes, and snippets.

@sigmadream
Last active January 17, 2024 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigmadream/95d60fdc1d57f3dda9294c8ab8e8d801 to your computer and use it in GitHub Desktop.
Save sigmadream/95d60fdc1d57f3dda9294c8ab8e8d801 to your computer and use it in GitHub Desktop.
from IPython.display import set_matplotlib_formats, display
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import mglearn
from mglearn import plot_helpers
from cycler import cycler
set_matplotlib_formats('pdf', 'png')
plt.rcParams['savefig.dpi'] = 300
plt.rcParams['figure.dpi'] = 100
plt.rcParams['image.cmap'] = "viridis"
plt.rcParams['image.interpolation'] = "none"
plt.rcParams['savefig.bbox'] = "tight"
plt.rcParams['lines.linewidth'] = 2
plt.rcParams['legend.numpoints'] = 1
plt.rc('axes', prop_cycle=(
cycler('color', plot_helpers.cm_cycle.colors) +
cycler('linestyle', ['-', '-', "--", (0, (3, 3)), (0, (1.5, 1.5))])))
np.set_printoptions(precision=3, suppress=True)
pd.set_option("display.max_columns", 8)
pd.set_option('display.precision', 2)
__all__ = ['np', 'mglearn', 'display', 'plt', 'pd']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment