InterviewDB Experience

Hyperparameter Optimization Parameters Generator - Enumerate Grid Search Configs

Interview Experience

Round 1 - Coding Problem Implement a hyperparameter grid search generator. Given a dictionary mapping parameter names to lists of possible values, generate all possible combinations in a deterministic order. Extension: Implement early stopping - accept a budget: int and return only the first budget configs from a random shuffle. Follow-ups How would you implement this as a generator (lazy evaluation) to handle huge grids? What is the total config count given the example above? How do you compute…

Full Details

🔒

Unlock all Pinterest questions

Full insider details, leaked discussions, and candidate experiences.

or every company, $100/year →

About This Question

This is a candidate experience report from a pinterest interview during the phone round.

It covers the following topics: Coding, Phone, Onsite, Matrix .