Complete the code to show how a feature store helps avoid skew by using the same {{BLANK_1}} for training and serving.
features = feature_store.get_features([1])
model.train(features)The feature store provides consistent feature_names for both training and serving, preventing skew.
Complete the code to fetch features from the feature store during serving using the same {{BLANK_1}} as training.
serving_features = feature_store.get_features([1])
predictions = model.predict(serving_features)Using the same feature_names ensures the model receives consistent input during serving.
Fix the error in this code snippet that causes training-serving skew by replacing {{BLANK_1}} with the correct feature source.
training_data = load_data()
features = [1]
model.train(features)Using feature_store.get_features() ensures features are consistent and prevents skew.
Fill both blanks to complete the code that ensures no skew by using the feature store for both {{BLANK_1}} and {{BLANK_2}}.
train_features = feature_store.get_features([1]) serve_features = feature_store.get_features([2]) model.train(train_features) predictions = model.predict(serve_features)
Using the same feature_names for training and serving avoids skew.
Fill all three blanks to complete the code that prevents training-serving skew by using the feature store's {{BLANK_1}}, {{BLANK_2}}, and {{BLANK_3}}.
features = feature_store.get_features([1]) model.train(features) serve_features = feature_store.get_features([2]) predictions = model.predict(serve_features) assert [3] == serve_features.columns
Using the feature store's feature_names for training and serving and checking columns ensures no skew.