Skip to main content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Intelligent Edge StudioMachine Learning and Edge AIExperimentsWorkspaces
ENGINEERING WORKSPACE
Home / Machine Learning & Edge AI / M08 · Model drift & lifecycle monitoring
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
Machine Learning & Edge AI · V16.8
Machine Learning and Edge AI

M08 · Model drift & lifecycle monitoring

Ask Dr. Mohammad · M08 →

Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

Design experiment & verify evidence →
M08 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice
Learning workflow · Machine Learning & Edge AIM08 · Model drift & lifecycle monitoring

Related course access: IoT Security and Privacy — same laboratory, notebook and completion record.

M08 · Academic orientation

Scope and objectives

Scope of the experiment

Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

The focus of this experiment is to compare baseline and current feature or error distributions. Students then calculate drift indicators and evaluate labeled performance where available, and design monitoring and retraining criteria without equating drift with confirmed failure. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Compare baseline and current feature or error distributions.
  • Calculate drift indicators and evaluate labeled performance where available.
  • Design monitoring and retraining criteria without equating drift with confirmed failure.
  • Identify the configured inputs (Held-out temperature shift (°C); Drift alert threshold (standard deviations)) and record the corresponding observed outputs with units where applicable.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can compare baseline and current feature or error distributions, calculate drift indicators and evaluate labeled performance where available, and design monitoring and retraining criteria without equating drift with confirmed failure.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing design monitoring and retraining criteria without equating drift with confirmed failure. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the following catalogue prerequisites before starting.

Environment and experimental methodology

The supplied model, datasets and local Python or Colab notebook. Report the data partition and execution environment; do not claim physical edge-device performance from host measurements.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

M08 · learning outcome

Understand the experiment

Scientific architecture · Model drift & lifecycle monitoring

Model drift and delayed labels — Reference window / distribution; New window / changed feature distribution; Drift statistic / compare threshold; Alarm / evidence of distribution change; Delayed labels / verify actual performance
Scientific concept map: Reference distribution — Training baseline; New observations — Shifted mean; Drift statistic — Compare distributions; Threshold — Monitor trigger; Lifecycle — Investigate and revalidate.

Scientific foundations and analytical reasoning

Drift is distribution change, not necessarily accuracy degradation. Delayed labels are needed to measure prediction quality.

Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.

Scientific theory · Drift and delayed performance labels

Covariate drift changes input distributions; concept drift changes the relationship between features and labels. Distribution monitoring can detect changes without labels, but accuracy degradation requires outcome evidence. Keep the deployed model frozen during comparison unless retraining is the intervention.

Worked example and engineering interpretation

A sensor mean shifting from 20 to 24 is a distribution change. It may or may not reduce classification accuracy, depending on the learned decision boundary and true labels. Compare reference and current windows, then evaluate performance only when matching labels arrive.

Engineering principles · additional worked teaching example

A drift metric compares current distribution to reference; mean shift normalized by reference standard deviation is dimensionless. μ0=10,σ0=2, μ1=13 gives1.5; alert threshold1 triggers, but drift is not proof of label error.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

How to investigate Model drift & lifecycle monitoring

Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

  1. Set Held-out temperature shift (°C) = 0; Drift alert threshold (standard deviations) = 0.8. Observe the calculated results and trace.
  2. Change Held-out temperature shift (°C) = 10. Increasing the shift triggers the drift alarm in the controlled fixture.
  3. Restore the reference values. Compare labeled accuracy and drift alert; propose an independent validation gate before retraining.

Reference check:

Model boundary:

Independent task and submission evidence

2. Change Held-out temperature shift (°C) = 10. Increasing the shift triggers the drift alarm in the controlled fixture. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

Method: Standardized change of mean plus frozen held-out classifier.

Prerequisites: M03 · M04 · M07.

Data provenance: deterministic generated teaching fixture or configured analytical model. No real sensor data, physical inference performance, or production deployment is claimed.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Held-out temperature shift (°C) = 0; Drift alert threshold (standard deviations) = 0.8. In the classroom model, Standardized mean shift = 0.037903; Drift alert = NO; Labeled test accuracy = 0.975; Test F1 = 0.97561. A mean-shift alert is not proof of concept drift. Labels are available only for this teaching fixture; real monitoring may require delayed labels and controlled retraining. Standardized change of mean plus frozen held-out classifier

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Mathematical representation and interpretation

Classification metrics

TP, FP and FN count true positives, false positives and false negatives. Define a zero-denominator convention and use labels from the evaluation set, not training examples.

\[\mathrm{precision}=\frac{TP}{TP+FP},\quad\mathrm{recall}=\frac{TP}{TP+FN},\quad F_1=\frac{2TP}{2TP+FP+FN}\]

Concept animation · progressive data plot

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

Model drift & lifecycle monitoring: progressive data plot17.723.32528.9534.57540.2Unshifted fixtureShifted input8011980

Step 1 of 7 · Observation 80

Observation 80

Unshifted fixture
26.1
Shifted input
26.1

Teaching example only; inspect live calculations or real practical evidence separately.

Recall the concept before revealing its explanation.

0 / 3 revealed
M08 · 01 / 08What does the monitoring experiment observe after training?Reveal explanation
Engineering explanation

Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

M08 · 02 / 08What drift indicators does the model calculate?Reveal explanation
Engineering explanation

Standardized change of mean plus frozen held-out classifier

M08 · 03 / 08What happens when the controlled distribution shift is introduced?Reveal explanation
Engineering explanation

Increasing the shift triggers the drift alarm in the controlled fixture.

M08 · 04 / 08Why is covariate drift not necessarily concept drift?Reveal explanation
Engineering reasoning

Input distribution can change while the relationship between inputs and labels stays the same.

M08 · 05 / 08Why preserve a frozen baseline and wait for labels?Reveal explanation
Engineering reasoning

It provides a stable comparison and permits actual performance assessment when labels become available.

M08 · 06 / 08A frozen classifier is monitored over time. Select every technically valid statement. A. Distribution drift and labeled performance are distinct observations. B. Use delayed labels to evaluate performance when available. C. Unlabeled drift alone establishes exact classification error. D. Retuning on the evaluation labels without disclosure preserves an untouched test set.Reveal explanation
Applied scenario

Correct: A. Distribution drift and labeled performance are distinct observations.; B. Use delayed labels to evaluate performance when available.

M08 · 07 / 08In Model drift & lifecycle monitoring, which reference and changed settings are prescribed for Held-out temperature shift (°C)?Reveal explanation
Controlled configuration

Held-out temperature shift (°C): 0 → 10; hold the remaining settings fixed.

M08 · 08 / 08What expected result distinguishes the reference and changed trials in Model drift & lifecycle monitoring?Reveal explanation
Expected observation

Increasing the shift triggers the drift alarm in the controlled fixture.

Loading live engineering instrument…
Supplementary research apparatus
Loading experiment-specific apparatus…
Scientific model · primary investigation
Simulation task

Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

Explore the model using its own controls. Record a prediction before changing a condition. Compare the reference with a changed condition, then use the Experiment tab for the procedure, acceptance criteria and notebook. Model outputs and physical observations must remain separate.

Interactive engineering workbenchM08 · Scientific model
Interactive workbench

Predict, configure and observe

M08 · Model-linked instrumentation

Visual observation lens

Back to controls ↑

Readout from the original computational model; not physical measurements.

Loading instrument…

Awaiting model display.

Experimental instrumentation · A/B

Compare two model conditions

Capture a baseline, change one experimental condition, run the model if required and capture the comparison. Snapshots contain visible controls and display text, not physical sensor readings. Review before exporting.

Open simulation view
Baseline A
Not captured
Comparison B
Not captured

Capture a baseline to begin.

Evidence portfolio →
V19.0 · Contextual AI workspace

Ask your engineering assistants

M08 · current context

Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.

Dr. Mohammad · offline
Dr. Mohammad

Offline curriculum-grounded assistance.

Open local tutor
Model drift & lifecycle monitoring

Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.

Prepare a contextual AI prompt

0 characters

Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.

Prepare → review → copy & open your selected provider → paste and submit there.

Independent theoretical exercises

Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.

01 · Predict and derive using the given inputs

For baseline mean 25, std 2 and held-out mean 27, calculate standardized mean shift and compare threshold .8.

02 · Compare or justify using evidence

Given baseline accuracy .9 and later 18 correct out of 25, calculate accuracy change; explain why drift alone cannot identify causation.

03 · Data analysis

Data analysis · Independent work

Reference μ=40,σ=4; three window means42,44,45. Under absolute normalized shift >1 flag which windows and explain next action.

Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.

Expanded independent theoretical exercise bank

Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.

Intermediate · Explain a changed-input result

Independent theoretical exercise · M08-01

Use the reference configuration (Held-out temperature shift (°C) = 0; Drift alert threshold (standard deviations) = 0.8), but change Held-out temperature shift (°C) = 0.2. The model reports Standardized mean shift = 0.067777. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.

Intermediate · Quantitative comparison

Independent theoretical exercise · M08-02

Two model observations of Standardized mean shift are 0.037903 (reference) and 0.067777 (changed condition). Compute signed change and, when the reference is nonzero, percentage change. Explain why units matter.

Intermediate · Interpret a technical trace

Independent theoretical exercise · M08-03

For Held-out temperature shift (°C) = 10, the model supplies this excerpt from Calculated trace: Item · Value · Explanation Train mean · 28.84875 · Threshold · 0.8 · Baseline model · Frozen; no automatic retraining · Count rows whose Value value is exactly “28.84875”, and identify the displayed row numbers. Explain what the count describes.

Advanced · Reverse reasoning

Independent theoretical exercise · M08-04

An observation is Standardized mean shift = 1.531614. Candidate A uses Held-out temperature shift (°C) = 0; Drift alert threshold (standard deviations) = 0.8. Candidate B changes the listed settings (Held-out temperature shift (°C) = 10) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.

Advanced · Diagnose a reported mismatch

Independent theoretical exercise · M08-05

A student configures Held-out temperature shift (°C) = 10 while preserving all other reference settings, but copies the reference report of Standardized mean shift = 0.037903. Evaluate whether the report is justified. Identify the first configuration/output check to perform.

Challenging · Design a controlled verification

Independent theoretical exercise · M08-06

Design a controlled comparison for Model drift & lifecycle monitoring using reference Held-out temperature shift (°C) = 0; Drift alert threshold (standard deviations) = 0.8 and test Held-out temperature shift (°C) = 0.2. Specify the changed setting(s), measured metric Standardized mean shift, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.

Step-by-step experimental procedure

Monitor distribution change and evaluate a frozen classifier when delayed labels are available.

1 · Reference workbench configuration

Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.

Held-out temperature shift (°C)0
Drift alert threshold (standard deviations)0.8

2 · Perform the investigation in order

  1. Set Held-out temperature shift (°C) = 0; Drift alert threshold (standard deviations) = 0.8. Observe the calculated results and trace.
  2. Change Held-out temperature shift (°C) = 10. Increasing the shift triggers the drift alarm in the controlled fixture.
  3. Restore the reference values. Compare labeled accuracy and drift alert; propose an independent validation gate before retraining.

3 · Compare controlled trials

TrialIndependent changeExpected checkObservation
ReferenceUse reference inputs aboveIncreasing the shift triggers the drift alarm in the controlled fixture.Record actual result
Controlled changeHeld-out temperature shift (°C) = 10Increasing the shift triggers the drift alarm in the controlled fixture.Record actual result

4 · Analyze and report

Compare labeled accuracy and drift alert; propose an independent validation gate before retraining.

Required evidence: Record the model drift & lifecycle monitoring comparison and justify the changed outcome from the calculated trace.

Model boundary: Standardized change of mean plus frozen held-out classifier

Controlled investigation · reproducible evidence

Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.

TrialIndependent changeDependent observation
ReferenceUse reference inputs aboveRecord actual outcome and units
Controlled changeHeld-out temperature shift (°C) = 10Record actual outcome and units

Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.

Loading laboratory-specific procedure…

Python / Google Colab notebook

Original Python reference, generated teaching fixture. Validated locally in a fresh Jupyter kernel. Download, then upload to Google Colab.

Download NotebookOpen Google ColabAll Python notebooks

Live investigation · step-by-step

  1. Keep shift 0, threshold 0.8 and window 12. Run 40 samples and record the score and delayed-label accuracy.
  2. Increase shift to 10 °C while playing. Observe when the rolling score crosses its threshold and when labels become available.
  3. Reset and compare label delays 0 and 10 using the same input sequence and shift. Distinguish missing labels from incorrect predictions.
  4. Export the evidence and propose a validation gate before retraining; explain why a mean-shift alert alone is not proof of concept drift.

Evidence: retain your prediction, configuration, observations and exported event history; distinguish calculated teaching-model results from physical measurements.

Complete practical procedure & acceptance

  1. Read the method, enter a prediction and save the reference baseline.
  2. Apply the controlled change and compare metrics and plot. Compare labeled accuracy and drift alert; propose an independent validation gate before retraining.
  3. Restore the reference and verify that the original metrics return. Enter an invalid parameter and confirm that export is disabled, then restore.
  4. Run the independent local Python computation from the extracted portal root:
    BASH · Command
    python3 verification/ml168_practical.py all
    Expected: ten passing checks and a result object for each lab. This uses Python standard library only. Compare the default result for M08 to the browser output.
  5. Export actual observations and explain one limitation.

Student submission: include your prediction, exported baseline and controlled result, actual terminal output, and a short interpretation. Do not submit the build validation report as your own evidence.

Experimental notebook

Record your own results. Values are not prefilled or independently verified.

Record & discuss

Portfolio exports use related core lab K14 for compatibility. The supplementary experiment ID is preserved in the attachment. Local completion is self-reported.

ML evaluation best practices · LiteRT quantization reference

Python / Google Colab laboratory

M08 · 11 notebook cells · 3 executable Python cells

Complete the theoretical investigation first. Run the cells in order, record actual outputs and compare against your prediction.

How to execute

  1. Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
  2. Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
  3. Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.

Execution scope: Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.

01Instructions · Markdown
# m08 · Model drift & lifecycle monitoring **PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh** ## Introduction Monitor distribution change and evaluate a frozen classifier when delayed labels are available. ## How to run 1. Download this notebook from the laboratory page. Open Google Colab → File → Upload notebook. 2. Select a Python CPU runtime. Run cells from top to bottom using Shift+Enter, or Runtime → Run all. 3. Read the printed observations and assertions. Change one parameter at a time and rerun the relevant cell. 4. Save your own outputs and compare them to the portal Experiment tab. **Execution boundary:** Original Python reference, generated teaching fixture. Do not run the hardware or service commands in Colab. No real credentials are needed. The notebook is self-contained.
02Instructions · Markdown
## Experiment-specific preparation Monitor distribution change and evaluate a frozen classifier when delayed labels are available. **Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):** 1. Set Held-out temperature shift (°C) = 0; Drift alert threshold (standard deviations) = 0.8. Observe the calculated results and trace. 2. Change Held-out temperature shift (°C) = 10. Increasing the shift triggers the drift alarm in the controlled fixture. 3. Restore the reference values. Compare labeled accuracy and drift alert; propose an independent validation gate before retraining. **Evidence:** **Boundary:**
03Instructions · Markdown
## 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implemented, and explain any discrepancy. - Distinguish actual local Python execution from mock, physical and external-service observations. ## 2. Environment check
04Python · executable cell
PYTHON · Code cell
# =====================================================================
# M08 | Code cell 01 | Model drift & lifecycle monitoring
# Purpose: 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implem
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import sys
print("Python",sys.version.split()[0])
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sys.version_info >= (3,10)
Ask Dr. Mohammad about this cell
05Instructions · Markdown
## 3. Implementation Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
06Python · executable cell
PYTHON · Code cell
# =====================================================================
# M08 | Code cell 02 | Model drift & lifecycle monitoring
# Purpose: implement only the mechanism named in this laboratory.
# Inputs: the explicit fictional fixture and reference parameters below.
# Output: printed observations and assertions for the controlled trial.
# =====================================================================
import math,statistics as st
def fixture():
    rows=[]
    for i in range(120):
        x=18+(i*7%23)+((i*13%9)-4)/10; v=1+(i*11%17)/5
        rows.append(dict(id=i,device=f'node-{1+i//40}',x=x,v=v,y=2.1*x+3+((i*19%13)-6)*.4,fault=int(x+3*v+((i*17%11)-5)/2>36)))
    return rows
def fit(rows):
    # Standardize on training rows only, then full-batch logistic gradient descent.
    mu=[st.mean(r[k] for r in rows) for k in ('x','v')]; sd=[st.pstdev(r[k] for r in rows) or 1 for k in ('x','v')]; w=[0.,0.]; b=0.
    for _ in range(300):
        dw=[0.,0.]; db=0.
        for r in rows:
            z=[(r[k]-mu[i])/sd[i] for i,k in enumerate(('x','v'))]; e=1/(1+math.exp(-(b+sum(a*c for a,c in zip(w,z)))))-r['fault']; db+=e
            for i in range(2): dw[i]+=e*z[i]
        b-=.25*db/len(rows); w=[a-.25*d/len(rows) for a,d in zip(w,dw)]
    return dict(mu=mu,s=sd,w=w,b=b)

def probability(m,r):
    return 1/(1+math.exp(-(m['b']+sum(m['w'][i]*(r[k]-m['mu'][i])/m['s'][i] for i,k in enumerate(('x','v'))))))

def matrix(y,p):
    tp=sum(a==b==1 for a,b in zip(y,p)); tn=sum(a==b==0 for a,b in zip(y,p)); fp=sum(a==0 and b==1 for a,b in zip(y,p)); fn=sum(a==1 and b==0 for a,b in zip(y,p)); ratio=lambda a,b:a/b if b else 0
    return dict(tp=tp,tn=tn,fp=fp,fn=fn,accuracy=ratio(tp+tn,len(y)),precision=ratio(tp,tp+fp),recall=ratio(tp,tp+fn),f1=ratio(2*tp,2*tp+fp+fn))
rows=fixture();train,test=rows[:80],rows[80:];model=fit(train)
mu=st.mean(r['x'] for r in train);sd=st.pstdev(r['x'] for r in train)
def evaluate(shift):
    changed=[{**r,'x':r['x']+shift} for r in test]
    z=abs(st.mean(r['x'] for r in changed)-mu)/sd
    return z,matrix([r['fault'] for r in test],[int(probability(model,r)>=.5) for r in changed])
Ask Dr. Mohammad about this cell
07Instructions · Markdown
### Step 2 · Run the reference calculation Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
08Python · executable cell
PYTHON · Code cell
# =====================================================================
# M08 | Code cell 03 | Model drift & lifecycle monitoring
# Purpose: implement only the mechanism named in this laboratory.
# Inputs: the explicit fictional fixture and reference parameters below.
# Output: printed observations and assertions for the controlled trial.
# =====================================================================
baseline,changed=evaluate(0),evaluate(10);print('Baseline',baseline,'Shifted',changed)
assert baseline[0]<.8<changed[0] and changed[1]['accuracy']<baseline[1]['accuracy']
Ask Dr. Mohammad about this cell
09Instructions · Markdown
## Original portal implementation (reference only) These are the actual laboratory snippets. They are retained for comparison; follow the portal setup for WSL, hardware or services. They are **not** executed by Run all. ```bash python3 verification/ml168_practical.py all ```
10Instructions · Markdown
## 4. Results and analysis Record the actual output and whether the assertions pass. Identify a parameter to vary, state your prediction, repeat the reference calculation, then explain the changed result. | Trial | Configuration | Observation | Interpretation | |---|---|---|---| | A | Reference | | | | B | One controlled change | | | | C | Reference repeat | | | **Limitations:** Original Python reference, generated teaching fixture. Notebook success does not certify external equipment or services.
11Instructions · Markdown
## Guided reasoning and evidence A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above. **Independent task:** 2. Change Held-out temperature shift (°C) = 10. Increasing the shift triggers the drift alarm in the controlled fixture. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat. | Trial | Input/configuration | Prediction | Observation | Evidence / limitation | |---|---|---|---|---| | A | Reference | | | | | B | Changed input | | | | | A repeat | Reference | | | | A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research