Vectorize One-Nearest-Neighbor and Express It as a Neural Forward Pass

Read the full interview experience this question came from →

Quick Overview

Write NumPy-style pseudocode for vectorized one-nearest-neighbor inference, then express the same nearest-prototype decision as a neural-network forward pass.

Vectorize One-Nearest-Neighbor and Express It as a Neural Forward Pass

Company: OpenAI

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

Overview: Write NumPy-style pseudocode for vectorized one-nearest-neighbor inference, then express the same nearest-prototype decision as a neural-network forward pass.

Read the full OpenAI Machine Learning Engineer interview experience this question came from

|Home/Machine Learning/OpenAI
OpenAI logo
OpenAI
Aug 15, 2026
mediumMachine Learning EngineerTechnical ScreenMachine Learning
89
0
Loading...