Skip to content

Commit 7daf870

Browse files
QuentinAmbardQuentinAmbard
authored andcommitted
reduce amount of inference for demo to run faster
1 parent aaa9cea commit 7daf870

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

product_demos/Data-Science/mlops-end2end/02-mlops-advanced/05_batch_inference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@
111111

112112
# Load customer features to be scored
113113
inference_df = spark.read.table("advanced_churn_cust_ids")
114+
# Reduce the amount of inferences for the demo to run faster
115+
inference_df = inference_df.limit(100)
114116

115117
# Batch score
116118
preds_df = fe.score_batch(df=inference_df, model_uri=model_uri, result_type="string", env_manager=env_manager)

0 commit comments

Comments
 (0)