QuestionQ37

VerifiedAdvanced Feature Store Concepts

A Machine Learning Engineer is developing a fraud-detection model that must use both precomputed features from a feature table and real-time calculated features based on user-location data provided with every inference request. The engineer created a Python UDF named calculate_distance in Unity Catalog at main.fraud_detection.calculate_distance, which calculates the distance between a transaction location and the user's current location. The feature table main.fraud_detection.user_features stores historical user-spending patterns and has the primary key user_id.

The engineer has written the following code to implement this scenario:

Question Image

Which benefit of this implementation approach makes it appropriate for the real-time fraud-detection use case?

Explanation

Logging a model with its TrainingSet preserves the FeatureLookup and FeatureFunction metadata. During real-time model serving, Databricks automatically retrieves the required feature-table values from the online store and evaluates the Unity Catalog Python UDF using the request inputs, so custom feature lookup and computation code is not needed in the serving application. On-demand feature computation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!