Skip to content

[SPARK-40264][ML][DOCS] Supplement docstring in pyspark.ml.functions.predict_batch_udf#39628

Closed
leewyang wants to merge 4 commits intoapache:masterfrom
leewyang:SPARK-40264-2
Closed

[SPARK-40264][ML][DOCS] Supplement docstring in pyspark.ml.functions.predict_batch_udf#39628
leewyang wants to merge 4 commits intoapache:masterfrom
leewyang:SPARK-40264-2

Conversation

@leewyang
Copy link
Contributor

What changes were proposed in this pull request?

Followup edits to pydoc from #37734 per request

Why are the changes needed?

Adds examples of multiple output models (using StructType return_type) for:

  • returning multiple fields of array type
  • returning a list of dict for row-oriented

Does this PR introduce any user-facing change?

Yes, updated pydocs for predict_batch_udf function.

How was this patch tested?

Documentation only.

@leewyang
Copy link
Contributor Author

@WeichenXu123 Here's the followup PR w/ additional examples in the pydoc.

@HyukjinKwon HyukjinKwon changed the title [SPARK-40264][ML] followup pydoc edits [SPARK-40264][ML][DOCS] Supplement docstring in pyspark.ml.functions.predict_batch_udf Jan 18, 2023
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine from a cursory look

@HyukjinKwon
Copy link
Member

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants