O'Reilly logo

Machine Learning with Python for Everyone by Mark Fenner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A. mlwpy.py Listing

# common import abbreviations import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import seaborn as sns import pandas as pd import patsy import itertools as it import collections as co import functools as ft import os.path as osp import glob import textwrap import warnings warnings.filterwarnings("ignore") # some warnings are stubborn in the extreme, we don't want # them in the book def warn(*args, **kwargs): pass warnings.warn = warn # config related np.set_printoptions(precision=4, suppress=True) pd.options.display.float_format = '{:20,.4f}'.format # there are good reasons *NOT* to do this in any real production code # for our purposes (writing a book with completely ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required