Setup file

In some instances, we might have to install packages that do not come prebuilt. The setup.py file comes in handy in such scenarios:

from setuptools import setup, find_packagessetup(name='mnist_mlp_lr_numsteps',      version='1.0',      packages=find_packages(),      include_package_data=True,      install_requires=[          'keras',          'h5py'],      zip_safe=False)

In the preceding code, one could include the additional packages that are needed to run the model file.

Get Hands-On Machine Learning on Google Cloud Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.