• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Other

WGU D501 Machine Learning DevOps Project 2: Deploy a Scalable ML Pipeline with FastAPI | Census Classifier, API Testing, Slice Metrics & Model Card | 2026/2027 Updated | Complete Project Solution

Document preview thumbnail
Preview 2 out of 13 pages

WGU D501 Machine Learning DevOps Project 2: Deploy a Scalable ML Pipeline with FastAPI | Census Classifier, API Testing, Slice Metrics & Model Card | 2026/2027 Updated | Complete Project Solution

Content preview

WGU D501 Machine Learning DevOps | Project 2 | 2026/2027 Updated




WGU D501
Machine Learning DevOps
Project 2 - Building and Serving an ML Model with FastAPI

Census Classifier | Slice Metrics | Model Card | FastAPI | Pytest | Flake8 | HTTP Evidence


2026/2027 Updated - Current Udacity Workspace Submission Workflow




Current-version note
This resource follows the refreshed CD16209 starter and submission contract. The normal route runs entirely in the Udacity
Workspace with Python 3.13. Heroku, DVC, hosted CI/CD, a public GitHub repository, remote model storage, and a public API
URL are not required for the current default submission path.




1

, WGU D501 Machine Learning DevOps | Project 2 | 2026/2027 Updated

1. Project Scope and Verified Current Requirements
The project trains a binary classifier on the UCI Adult/Census income data, evaluates model quality overall and across categorical
slices, serializes the complete inference state, and exposes real predictions through a FastAPI service. The current assessment
also requires local automated quality validation and portable evidence that reviewers can reproduce from the submitted project
root.
Area Current requirement
Bundled data/census.csv; preserve feature names including hyphens
Dataset
and target salary
Python Preinstalled Workspace Python 3.13 ml environment
Learner-selected classifier; starter model functions are intentionally
Model
incomplete
Core metrics Precision, recall, F1 on held-out data
At least one categorical feature; metrics for every distinct evaluation
Slice metrics
value plus sample count
Artifacts Saved classifier and all fitted preprocessing required for inference
Documentation Completed model_card.md and README inference/artifact mapping
API FastAPI app with GET / and separate inference POST route
Tests At least 3 model-related tests and at least 3 API tests
Quality gate python scripts/check.py -> pytest then flake8, exit status zero
HTTP evidence request.py must call the running Uvicorn server, not only TestClient
Submission Workspace default; GitHub or ZIP optional alternatives


Critical 2026 change
The current submission contract explicitly says no particular Git history, protected branch, hosted CI/CD, or public endpoint is
required. Do not build a new resource around legacy Heroku screenshots or GitHub Actions unless an active course screen
specifically asks for them.




2

Document information

Uploaded on
October 6, 2026
Number of pages
13
Written in
2026/2027
Type
Other
Person
Unknown
$16.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Wiseman
3.9
(1674)
Sold
8515
Followers
3911
Items
31430
Last sold
6 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions