Complete the code to specify the type of feature store used for real-time predictions.
feature_store_type = "[1]" # Used for serving features in real-time
The online feature store is used to serve features in real-time for predictions.
Complete the code to specify the feature store used for training machine learning models.
training_feature_store = "[1]" # Used for batch processing and model training
The offline feature store is used for batch processing and training models with historical data.
Fix the error in the code by choosing the correct feature store type for low latency access.
def get_feature_store(store_type): if store_type == "[1]": return "Low latency access for predictions" else: return "Batch access for training"
The online feature store provides low latency access needed for real-time predictions.
Fill both blanks to create a dictionary mapping feature store types to their main use cases.
feature_store_usage = {
"[1]": "Used for batch training",
"[2]": "Used for real-time serving"
}The offline store is for batch training, and the online store is for real-time serving.
Fill all three blanks to complete the code that checks feature store latency and usage.
def check_store(store): latency = store.get_latency() if latency [1] 10: usage = "[2]" else: usage = "[3]" return usage
If latency is less or equal to 10 ms, the store is online (real-time). Otherwise, it is offline (batch).