OpenAI data scientist interviews test statistical reasoning, ML model design, SQL proficiency, A/B testing methodology, and Python-based algorithm implementation.
cd command. Given a current directory path and a relative destination path, return the final absolute...Input: Given inputmalloc and free operations with efficient...Input: Linked list"A.B.C.D", where each octet is an...Input: StringStreamingFeatureAggregator that collects real-time data features for multiple models.add_feature(model_id: str, feature_name: str, value: float) -> None: Adds or updates a feature for a specific model.get_features(model_id: str) -> Dict[str, float]: Retrieves the current features for a specified model.aggregate_features() -> Dict[str, Dict[str, float]]: Aggregates features for all models and returns them.Example 1:add_feature('gpt-3', 'latency', 200)NoneExample 2:get_features('gpt-3'){'latency': 200}Constraints:ModelVersionRegistry to manage different versions of AI models and associated metadata.add_version(model_id: str, version_id: str, metadata: dict) -> None: adds a new model version with its metadata.get_version(model_id: str, version_id: str) -> dict: retrieves the metadata for a specific model version.list_versions(model_id: str) -> List[str]: lists all versions of a given model.Example 1:add_version('gpt-3', 'v1', {'accuracy': 0.9})NoneExample 2:get_version('gpt-3', 'v1'){'accuracy': 0.9}Constraints:model_performance with columns model_id, accuracy, and timestamp, write a SQL query to find the top 5 models by average accuracy over time, ordered from highest to lowest average accuracy.Example 1:model_performance contains at least 1 and at most 100,000 rows.text representing a large text body, your task is to implement a function summarize_text(text: str) -> str that uses a sliding window approach to summarize the text by extracting key sentences while maintaining coherence.summarize_text returns a str representing the summarized text.Example 1:text consists of 1 to 10^6 characters.text will not exceed 100.Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free