1 Star 0 Fork 0

somefusion / introduction_to_ml_with_python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
preamble.py 774 Bytes
一键复制 编辑 原始数据 按行查看 历史
Andreas Mueller 提交于 2017-06-27 14:58 . dpi issue fixes
from IPython.display import set_matplotlib_formats, display
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import mglearn
from cycler import cycler
set_matplotlib_formats('pdf', 'png')
plt.rcParams['figure.dpi'] = 300
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', mglearn.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('precision', 2)
__all__ = ['np', 'mglearn', 'display', 'plt', 'pd']
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/somefusion/introduction_to_ml_with_python.git
git@gitee.com:somefusion/introduction_to_ml_with_python.git
somefusion
introduction_to_ml_with_python
introduction_to_ml_with_python
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891