cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Which MLlib library am I supposed to use - pyspark.mllib or pyspark.ml?

User16826992666
Valued Contributor

Both of these libraries seem to be available and they are both for MLlib, how do I know which one to use?

1 REPLY 1

User16826992666
Valued Contributor

The pyspark.mllib library is built for RDD's, and the pyspark.ml library is built for Dataframes. The RDD-based mllib library is currently in maintenance mode, while the Dataframe library will continue to receive updates and active development. For that reason, plus the fact that Dataframes are more common and are generally recommended to use, you will usually want to use the pyspark.ml library.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group