Project 22: Video Feature Distance
Scientific Computing
Current Task
Objective
Review day: reuse Euclidean distance — day 11 — to compare two videos' feature vectors.
Task: compute the distance between two video feature vectors and print it rounded.
index.py
from scipy.spatial.distance import euclidean
video_a = (0.8, 0.2)
video_b = (0.6, 0.4)
print(round(euclidean(video_a, video_b), 3))
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview