​​ Build a Visit Duration Prediction Model with scikit learn
Use Case

Build a Visit Duration Prediction Model with scikit learn

Group: Use Case

Product Category: AI Engineering

Sub Category: ML Engineer

Solution Available

Source code, datasets, and other related files for the solution will be provided.

Prerequisites

Python programming Model selection and comparison Pipeline construction Model promotion gating

About this Product

Healthcare practices over-book appointments into fixed 15-minute slots, causing visits to overrun and waiting rooms to back up.

 

What you build

  • Feature pipeline: Time, age band and interaction features inside a scikit-learn Pipeline with a leakage guard.
  • Model selection: Cross-validate four candidates (baseline, ridge, random forest, gradient boosting) and select the best.
  • Batch CLI: Validate tomorrow's schedule and score with the approved model to write a plan with slot recommendations.

 

Skills you practise

  • Feature engineering: Creating time-based and categorical features while detecting and guarding against data leakage.
  • Cross validation: Patient-grouped folds to prevent the same patient appearing in both training and validation.
  • Model selection: Comparing candidates with reproducible metrics and applying promotion gates.
  • Metrics: MAE, RMSE, R2, within-5-minute rate and improvement over baseline.

 

Outcome

  • Portfolio ready: A training and batch inference workflow you can explain in interviews and publish on GitHub.
  • Reproducible: Identical results with seeded data, configuration via .env and run records documenting every decision.

Interview Q&A Included

1 practice set bundled with this lab

  • Visit Duration Prediction and Batch Scoring Assessment

    Visit Duration Prediction and Batch Scoring Assessment

    Category: AI Engineering Subcategory: ML Engineer 41 questions

    This assessment checks what you learned while building a visit duration model for a family practice, from raw rows to a batch plan of recommended appointment slots. Questions are grouped …

Resources

1/4
Pacewell Business Requirements
Pacewell Business Requirements
| PDF

The complete brief for the visit duration model and nightly slot planner you build: the problem, the rules and how success is measured.

  • The Harrowgate Family Health problem: flat fifteen minute slots, overrunning visits and a backed up waiting room
  • Fifteen numbered business and technical rules, from data minimisation to the batch run controls
  • Sample training and schedule rows, including the invalid ones your validator must reject
  • The five step workflow from synthetic data to a validated slot plan, with the expected files and metrics
  • Seven edge cases and eight acceptance criteria that define when the lab is complete
  • Skill mapping, the pinned technology stack, the project structure and the deliverables you hand in
Enroll to Access
Build a Visit Duration Prediction Model with scikit learn
50% OFF

Topics

Python scikit-learn pandas

Skills

Feature Engineering Model Selection Cross Validation Metrics Batch Inference

Languages

English

Level

Intermediate

Business Domain

Healthcare and Patient Management

$7.00 $14.00
Includes 1 Interview Q&A set

Labs • Projects • Practice

Similar Products

> more hands-on labs picked for you_

33% OFF
Build a Governed Student Intervention Agent Team with Python
Use Case

Build a Governed Student Intervention Agent Team with Python

Build a Governed Student Intervention Agent Team with Python is an advanced, GenAI use case lab that builds Beacon, a …

Multi-Agent Orchestration Tool Governance Human-in-the-Loop Workflows LLM Evaluation Observability & Tracing AI Safety & Guardrails +4 more +3 more +2 more +1 more

Level

Advanced

Time

10.0 hrs

Language

English

44% OFF
Design a Shipment Tracking Data Model and Pipeline with PostgreSQL
Capstone Project

Design a Shipment Tracking Data Model and Pipeline with PostgreSQL

Shipment Tracking Data Model and Pipeline with PostgreSQL is a beginner-level data engineering project for a fictional freight logistics company. …

Data Modeling ETL Pipeline Design Relational Database Design Data Validation & Quality Exception Detection SQL Reporting +4 more +3 more +2 more

Level

Beginner

Time

24.0 hrs

Language

English

50% OFF
Build a Property Pricing Data Warehouse with DuckDB and Python
Capstone Project

Build a Property Pricing Data Warehouse with DuckDB and Python

Build a Property Pricing Data Warehouse with DuckDB and Python is a data engineering product that builds CompVantage — a …

Data Engineering Dimensional Modeling Medallion Architecture Data Governance ETL Pipeline Design Data Quality & Validation +4 more +3 more +2 more +1 more

Level

Intermediate

Time

24.0 hrs

Language

English

44% OFF
Build a Governed Fleet Route Data Platform with Python and DuckDB
Capstone Project

Build a Governed Fleet Route Data Platform with Python and DuckDB

Build a Governed Fleet Route Data Platform with Python and DuckDB is a data engineering product that builds the complete …

Data Engineering Batch Pipeline Design DAG Orchestration Data Governance Data Quality & Validation Observability & Monitoring +4 more +3 more +1 more

Level

Beginner

Time

16.0 hrs

Language

English

50% OFF
Build a Real Time Retail Sales Pipeline with Kafka Python and Google BigQuery
Use Case

Build a Real Time Retail Sales Pipeline with Kafka Python and Google BigQuery

Build a Real Time Retail Sales Pipeline with Kafka, Python and Google BigQuery is a data engineering product that builds …

Event Streaming Data Engineering Kafka Consumer Design Google BigQuery Integration Idempotent Data Loading Data Validation & DLQ +4 more +3 more +2 more

Level

Intermediate

Time

4.0 hrs

Language

English

33% OFF
Build a Real Time Retail Sales Pipeline with Kafka PySpark and PostgreSQL
Use Case

Build a Real Time Retail Sales Pipeline with Kafka PySpark and PostgreSQL

Build a Real Time Retail Sales Pipeline with Kafka, PySpark and PostgreSQL is an intermediate-level data engineering product that builds …

Event Streaming Data Engineering PySpark Structured Streaming Idempotent Data Loading Data Validation & DLQ Kafka Integration +4 more +2 more

Level

Intermediate

Time

4.0 hrs

Language

English

32% OFF
Enterprise Data Security & Governance Implementation using Snowflake
Business Requirement

Enterprise Data Security & Governance Implementation using Snowflake

Enterprise Data Security & Governance Implementation using Snowflake is a practical implementation guide that teaches you how to build a …

Snowflake Security Data Governance Role-Based Access Control (RBAC) Dynamic Data Masking Row Access Policies Data Classification Audit Logging Regulatory Compliance Healthcare Analytics +7 more +5 more +4 more +3 more +2 more

Level

Advanced

Language

English

33% OFF
Enterprise Sales Analytics Data Warehouse Design with Kimball Modeling & SCD Implementation
Business Requirement

Enterprise Sales Analytics Data Warehouse Design with Kimball Modeling & SCD Implementation

Enterprise Sales Analytics Data Warehouse Design with Kimball Modeling & SCD Implementation is a practical implementation guide that teaches you …

Data Warehousing Kimball Dimensional Modeling Star Schema Slowly Changing Dimensions Change Data Capture SQL Data Engineering Business Intelligence Real-Time Analytics +7 more +6 more +5 more +3 more +2 more +1 more

Level

Advanced

Language

English

33% OFF
Enterprise Customer 360 Data Platform Implementation using Natural Keys, Row Hashes & Medallion Architecture
Business Requirement

Enterprise Customer 360 Data Platform Implementation using Natural Keys, Row Hashes & Medallion Architecture

Enterprise Customer 360 Data Platform Implementation using Natural Keys, Row Hashes & Medallion Architecture is a practical implementation guide that …

Customer 360 Data Engineering ETL Pipeline Design Medallion Architecture Entity Resolution Natural Key Matching Data Integration Data Warehousing Master Data Management +7 more +6 more +5 more +4 more +3 more +2 more

Level

Advanced

Language

English

40% OFF
Historical Dimension Tracking & SCD Pipeline Implementation Using PySpark and PostgreSQL
Capstone Project

Historical Dimension Tracking & SCD Pipeline Implementation Using PySpark and PostgreSQL

Historical Dimension Tracking & SCD Pipeline Implementation Using PySpark and PostgreSQL is a practical implementation guide that teaches you how …

PySpark Slowly Changing Dimensions (SCD) PostgreSQL Data Warehousing Dimensional Modeling Temporal Data Modeling Data Engineering ETL Pipeline Development +6 more +5 more +4 more +3 more +1 more

Level

Intermediate

Time

10.0 hrs

Language

English

37% OFF
Real Time Kafka Consumer Data Ingestion into RAW Layer Using PySpark
Business Requirement

Real Time Kafka Consumer Data Ingestion into RAW Layer Using PySpark

Real-Time Kafka Consumer Data Ingestion into RAW Layer Using PySpark is a practical implementation guide that teaches you how to …

PySpark Structured Streaming Apache Kafka Streaming Data Engineering Real-Time Data Ingestion Kafka Consumers ETL Pipeline Development +4 more +3 more +2 more

Level

Intermediate

Language

English

40% OFF
Healthflow Analytics Platform with Snowflake & Medallion Architecture
Capstone Project

Healthflow Analytics Platform with Snowflake & Medallion Architecture

Healthflow Analytics Platform with Snowflake & Medallion Architecture is a healthcare data engineering capstone project that demonstrates how to build …

Snowflake Data Engineering Healthcare Analytics ETL Pipeline Design Medallion Architecture Data Governance Data Warehousing Snowflake Administration +5 more +4 more +3 more +1 more

Level

Intermediate

Time

8.0 hrs

Language

English

30% OFF
FinTech Banking ETL Pipeline with PySpark Delta Lake and Medallion Architecture
Capstone Project

FinTech Banking ETL Pipeline with PySpark Delta Lake and Medallion Architecture

NovaPay ETL Pipeline is an advanced data engineering capstone project that builds a production-grade ETL pipeline for a fictional digital …

Data Engineering ETL Pipeline Design Medallion Architecture Data Quality & Validation Incremental Processing Delta Lake & Lakehouse +4 more +3 more +2 more

Level

Advanced

Language

English

40% OFF
Full Stack IPL Cricket Analytics Dashboard and Statistics Platform
Capstone Project

Full Stack IPL Cricket Analytics Dashboard and Statistics Platform

IPL Analytics Dashboard is an advanced, full-stack capstone project that transforms 17 years of Indian Premier League ball-by-ball match data …

Full Stack Development Data Ingestion & Pipeline REST API Development Database Design Data Visualization User Authentication +4 more +3 more +1 more

Level

Advanced

Language

English

Demo

View
50% OFF
Retail Banking EDA & Transaction Analytics Platform
Capstone Project

Retail Banking EDA & Transaction Analytics Platform

Retail Banking EDA & Transaction Analytics Platform is an advanced, full-stack capstone project that takes you through the complete data …

Data Engineering Exploratory Data Analysis Full Stack Development Database Design Regulatory Compliance REST API Design Data Visualization +5 more +4 more +2 more +1 more

Level

Intermediate

Time

8.0 hrs

Language

English

Demo

View
40% OFF
AI Powered Meeting Notes Generator
Capstone Project

AI Powered Meeting Notes Generator

AI Powered Meeting Notes Generator is an intermediate-level, full-stack capstone project that transforms raw meeting recordings and transcripts into clean, …

AI Integration Full Stack Development Speech-to-Text LLM Prompt Engineering Async Processing REST API Design +4 more +3 more

Level

Intermediate

Time

8.0 hrs

Language

English

Demo

View
40% OFF
Full Stack Service Booking Marketplace with Consultant Subscription Model
Capstone Project

Full Stack Service Booking Marketplace with Consultant Subscription Model

BookMyService is a beginner-friendly, full-stack capstone project that simulates a real-world two-sided service marketplace — where users can discover and …

Full Stack Development SaaS Marketplace Authentication & Security Subscription Management Role-Based Access Control REST API Design +4 more +3 more +2 more

Level

Intermediate

Time

8.0 hrs

Language

English

Demo

View

Expert Guidance

Similar Services

1:1 help from industry experts who can guide you through labs like this one.

Finding the best experts for you...

Learner Feedback

Top User Reviews

Loading reviews...