liveBook · Manning

Deployment

As explained in Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A production deployment is the operational release of a software system or machine-learning solution for live application use.

Deployment makes a trained machine-learning model available for live use. A practical path starts with a small local web application, then moves to a cloud endpoint when broader access or scalable resources are needed. section 10.1 section 10.4.3

Exercise the trained model with a few genuinely new data points early. This exposes data leakage, clarifies which features will actually be available, and checks whether test-set performance reflects real-world behavior before deployment becomes expensive to change. section 9.5.1

A simple web deployment combines these working parts:

  • A saved trained model loaded by a Python Flask server module. section 10.1.1
  • A YAML configuration file containing server parameters such as the model directory. section 10.1.1
  • An input page for property characteristics and a results page for the prediction, supported by JavaScript and CSS. section 10.1.1
  • A cloud endpoint that replaces the local model file as the callable location for predictions. section 10.4.3

From local testing to an endpoint

Run the Flask server locally, open localhost:5000, and test a Kuala Lumpur property prediction. For a cloud test, send the same property features as JSON arrays to a Vertex AI endpoint, then apply the sigmoid function to its output when a probability is required. A sample result reports a 17.9 percent probability that the property exceeds the median price. section 10.1.5 section 10.4.4

Figure 10.1 Overview of the web deployment

Use the deployment overview to trace the model, Flask server, configuration, web pages, and styling as one working system. section 10.1.1

How Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI covers it

How deep it goes
Explains components, local testing, endpoint configuration, and prediction validation, but defers broader production characteristics and resource scaling.
Examples
Uses Kuala Lumpur property-price prediction, a local Flask server, browser testing, and Vertex AI JSON endpoint requests.
What it assumes
Assumes a trained saved model and teaches the deployment interface, request format, and validation workflow from that starting point.
What you can do after
Operate a local Flask deployment, invoke a Vertex AI endpoint, and interpret its model output as a probability.
How it connects
Connects machine learning with data leakage, web applications, Flask, JSON, cloud endpoints, and model validation.

Also explained in

Compare how 23 books explain deployment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI. The section links point to the parts of the book it draws on.