[ 
https://issues.apache.org/jira/browse/SPARK-62304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-62304:
-----------------------------------
    Labels: pull-request-available  (was: )

> Collect the reference cycles through the DataFrames that the native ML models 
> of the Python client keep, as PySpark collects them
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62304
>                 URL: https://issues.apache.org/jira/browse/SPARK-62304
>             Project: Spark
>          Issue Type: Improvement
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>
> The native ML classes of the Python client keep DataFrames in Rust that 
> Python's garbage collector does not see: a model's training summary dataset, 
> the training sets of the models of a OneVsRestModel, and the summary dataset 
> and arguments of a DataFrame of a method of an ML object or helper 
> (summary.predictions, ChiSquareTest.test, ...). So a reference cycle through 
> them, such as a function of a UDF of the training DataFrame that keeps the 
> model, is never collected, and the model stays in the server's ML cache, 
> where PySpark collects it and deletes the model's object. Report the parts of 
> those DataFrames to the collector, as the rules of SPARK-62235 do for other 
> holders.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to