Model Pipeline - Human-in-the-loop interrupts
This pipeline shows how a machine learning model works together with a human to improve decisions. The human can interrupt the model's process to correct or guide it, making the system smarter and safer.
Jump into concepts and practice - no test required
This pipeline shows how a machine learning model works together with a human to improve decisions. The human can interrupt the model's process to correct or guide it, making the system smarter and safer.
Loss
0.7 |****
0.6 |***
0.5 |**
0.4 |**
0.3 |*
0.2 |*
1 2 3 4 5 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.65 | 0.60 | Model starts learning but with many errors |
| 2 | 0.48 | 0.72 | Loss decreases and accuracy improves |
| 3 | 0.35 | 0.81 | Model learns important patterns |
| 4 | 0.28 | 0.86 | Better predictions, fewer mistakes |
| 5 | 0.22 | 0.90 | Model converges with good accuracy |
while True:
if human_signal():
break
ai_action() breaks the loop when human_signal() is true, correctly stopping AI. for i in range(5):
ai_action()
if human_signal():
continue continues instead of stopping. if human_signal():
ai_action()
else:
break breaks if no signal, which is wrong. while human_signal():
ai_action() runs AI only while signal is true, which is opposite.while True:
if human_signal():
break
ai_action() [OK]human_signal() returns True on the 3rd iteration?
for i in range(5):
if human_signal():
print(f"Interrupted at {i}")
break
print(f"Action {i}")while True:
ai_action()
if human_signal():
pause()
break