<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Spark.mllib_(RDD-based_API)</id>
	<title>Spark.mllib (RDD-based API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Spark.mllib_(RDD-based_API)"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Spark.mllib_(RDD-based_API)&amp;action=history"/>
	<updated>2026-12-06T00:08:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Spark.mllib_(RDD-based_API)&amp;diff=116&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@10e58e6</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Spark.mllib_(RDD-based_API)&amp;diff=116&amp;oldid=prev"/>
		<updated>2026-11-23T00:58:07Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@10e58e6&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:58, 23 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Maintenance mode since 2.0.&amp;#039;&amp;#039;&amp;#039; The Spark 2.0.0 release notes say the DataFrame-based API became the primary API and the RDD-based API entered maintenance mode.&amp;lt;ref name=&amp;quot;r200&amp;quot; /&amp;gt; The MLlib guide at v4.3.0 says that MLlib still supports the RDD-based API with bug fixes and will not add new features to it.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt; The Python package docstring says the same for &amp;lt;code&amp;gt;pyspark.mllib&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;pyinit&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/pyspark/mllib/__init__.py |title=python/pyspark/mllib/__init__.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Maintenance mode since 2.0.&amp;#039;&amp;#039;&amp;#039; The Spark 2.0.0 release notes say the DataFrame-based API became the primary API and the RDD-based API entered maintenance mode.&amp;lt;ref name=&amp;quot;r200&amp;quot; /&amp;gt; The MLlib guide at v4.3.0 says that MLlib still supports the RDD-based API with bug fixes and will not add new features to it.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt; The Python package docstring says the same for &amp;lt;code&amp;gt;pyspark.mllib&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;pyinit&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/pyspark/mllib/__init__.py |title=python/pyspark/mllib/__init__.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Planned removal that did not happen.&#039;&#039;&#039; The MLlib guide in Spark 2.0.0 through 2.4.0 said the RDD-based API was &quot;expected to be removed in Spark 3.0&quot;.&amp;lt;ref name=&quot;guide240&quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v2.4.0/docs/ml-guide.md |title=MLlib: Main Guide (docs/ml-guide.md at v2.4.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The guide update for the 3.0 release removed that sentence, and the package was not removed.&amp;lt;ref name=&quot;jira30934&quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-30934 |title=SPARK-30934: ML, GraphX 3.0 QA: Programming guide update and migration guide |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Planned removal that did not happen.&#039;&#039;&#039; The MLlib guide in Spark 2.0.0 through 2.4.0 said the RDD-based API was &quot;expected to be removed in Spark 3.0&quot;.&amp;lt;ref name=&quot;guide240&quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v2.4.0/docs/ml-guide.md |title=MLlib: Main Guide (docs/ml-guide.md at v2.4.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The guide update for the 3.0 release removed that sentence, and the package was not removed&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. The package&#039;s Scala documentation at v4.3.0 still says the package &quot;will be deprecated&quot; once the DataFrame-based API reaches feature parity, while the MLlib guide says that parity was reached in the Spark 2.x releases; no release has deprecated it&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/mllib/src/main/scala/org/apache/spark/mllib/package.scala |title=mllib/package.scala (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&quot;guide&quot; /&amp;gt;&lt;/ins&gt;&amp;lt;ref name=&quot;jira30934&quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-30934 |title=SPARK-30934: ML, GraphX 3.0 QA: Programming guide update and migration guide |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Individual APIs deprecated and removed.&#039;&#039;&#039; Some classes and methods in the package were deprecated and later removed. Spark 3.0 removed, among others, the Scala classes &amp;lt;code&amp;gt;LogisticRegressionWithSGD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LinearRegressionWithSGD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LassoWithSGD&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RidgeRegressionWithSGD&amp;lt;/code&amp;gt; (deprecated in 2.0), and the &amp;lt;code&amp;gt;runs&amp;lt;/code&amp;gt; parameter of &amp;lt;code&amp;gt;KMeans.train&amp;lt;/code&amp;gt; (deprecated in 2.1).&amp;lt;ref name=&quot;migration&quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/ml-migration-guide.md |title=Migration Guide: MLlib (docs/ml-migration-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The PySpark wrappers of &lt;/del&gt;the SGD classes are still &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;present &lt;/del&gt;in 4.3.0, marked deprecated since 2.0.0, and emit a &amp;lt;code&amp;gt;FutureWarning&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/pyspark/mllib/classification.py |title=python/pyspark/mllib/classification.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Individual APIs deprecated and removed.&#039;&#039;&#039; Some classes and methods in the package were deprecated and later removed. Spark 3.0 removed, among others, the Scala classes &amp;lt;code&amp;gt;LogisticRegressionWithSGD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LinearRegressionWithSGD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LassoWithSGD&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RidgeRegressionWithSGD&amp;lt;/code&amp;gt; (deprecated in 2.0), and the &amp;lt;code&amp;gt;runs&amp;lt;/code&amp;gt; parameter of &amp;lt;code&amp;gt;KMeans.train&amp;lt;/code&amp;gt; (deprecated in 2.1).&amp;lt;ref name=&quot;migration&quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/ml-migration-guide.md |title=Migration Guide: MLlib (docs/ml-migration-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For &lt;/ins&gt;the SGD classes&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, removal meant the public API: at v4.3.0 the Scala classes remain with constructors private to the &amp;lt;code&amp;gt;mllib&amp;lt;/code&amp;gt; package, used by the PySpark wrappers.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala |title=PythonMLLibAPI.scala (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Those PySpark wrappers &lt;/ins&gt;are still &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;public &lt;/ins&gt;in 4.3.0, marked deprecated since 2.0.0, and emit a &amp;lt;code&amp;gt;FutureWarning&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/pyspark/mllib/classification.py |title=python/pyspark/mllib/classification.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;No Spark Connect.&amp;#039;&amp;#039;&amp;#039; The Spark Connect documentation lists RDD and &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt; as unsupported, so spark.mllib code needs a classic Spark application.&amp;lt;ref name=&amp;quot;connect&amp;quot; /&amp;gt; The DataFrame-based &amp;lt;code&amp;gt;pyspark.ml&amp;lt;/code&amp;gt; API works on Spark Connect from Spark 4.0.0.&amp;lt;ref&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-50812 |title=SPARK-50812: Support pyspark.ml on Connect |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;No Spark Connect.&amp;#039;&amp;#039;&amp;#039; The Spark Connect documentation lists RDD and &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt; as unsupported, so spark.mllib code needs a classic Spark application.&amp;lt;ref name=&amp;quot;connect&amp;quot; /&amp;gt; The DataFrame-based &amp;lt;code&amp;gt;pyspark.ml&amp;lt;/code&amp;gt; API works on Spark Connect from Spark 4.0.0.&amp;lt;ref&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-50812 |title=SPARK-50812: Support pyspark.ml on Connect |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-105:rev-116:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Spark.mllib_(RDD-based_API)&amp;diff=105&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@f2492a3</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Spark.mllib_(RDD-based_API)&amp;diff=105&amp;oldid=prev"/>
		<updated>2026-11-23T00:34:55Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@f2492a3&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:spark.mllib (RDD-based API)}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name                = spark.mllib (RDD-based API)&lt;br /&gt;
| developer           = [[Apache Software Foundation]] ([[Apache Spark]] project)&lt;br /&gt;
| initial_release     = Spark 0.8.0 (as MLlib)&lt;br /&gt;
| latest_release      = Spark 4.3.0&lt;br /&gt;
| latest_release_date = 2026-10-30&lt;br /&gt;
| written_in          = Scala, with Python and Java APIs&lt;br /&gt;
| type                = Machine learning API (RDD-based)&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://spark.apache.org/docs/4.3.0/mllib-guide.html MLlib: RDD-based API guide]&lt;br /&gt;
| repo                = [https://github.com/apache/spark/tree/v4.3.0/mllib/src/main/scala/org/apache/spark/mllib github.com/apache/spark (mllib/.../mllib)]&lt;br /&gt;
| related             = [[MLlib]], [[RDD]], [[Spark Connect]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the v4.3.0 tag of apache/spark (docs/ml-guide.md, docs/mllib-guide.md, docs/ml-migration-guide.md, docs/mllib-pmml-model-export.md, python/pyspark/mllib/), the v2.0.0 to v2.4.0 tags of docs/ml-guide.md, the Spark 2.0.0 and 4.0.0 release notes and SPARK-30934}}&lt;br /&gt;
{{Status|maintenance |since=Apache Spark 2.0.0 |replacement=the DataFrame-based &amp;lt;code&amp;gt;spark.ml&amp;lt;/code&amp;gt; API of [[MLlib]] |note=Only bug fixes are accepted. The package as a whole is not deprecated in any release up to 4.3.0 and is still included. |ref=&amp;lt;ref name=&amp;quot;guide&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/ml-guide.md |title=MLlib: Main Guide (docs/ml-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;r200&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/releases/spark-release-2-0-0.html |title=Spark Release 2.0.0 |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;spark.mllib&amp;#039;&amp;#039;&amp;#039; is the original, [[RDD]]-based API of [[MLlib]], the machine learning library of [[Apache Spark]], found in the &amp;lt;code&amp;gt;org.apache.spark.mllib&amp;lt;/code&amp;gt; package in Scala and Java and &amp;lt;code&amp;gt;pyspark.mllib&amp;lt;/code&amp;gt; in Python.&amp;lt;ref name=&amp;quot;rddguide&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/mllib-guide.md |title=MLlib: RDD-based API (docs/mllib-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Since Spark 2.0 it has been in maintenance mode: it receives bug fixes but no new features, and the DataFrame-based &amp;lt;code&amp;gt;spark.ml&amp;lt;/code&amp;gt; package is the primary machine learning API.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;r200&amp;quot; /&amp;gt; The MLlib guide states that neither API is deprecated; spark.mllib is still part of Spark 4.3.0, but it cannot be used from a [[Spark Connect]] client.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;connect&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/spark-connect-overview.html |title=Spark Connect Overview (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Is spark.mllib deprecated?&amp;#039;&amp;#039;&amp;#039; No, as a package it is in maintenance mode, not deprecated.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Maintenance mode since 2.0.&amp;#039;&amp;#039;&amp;#039; The Spark 2.0.0 release notes say the DataFrame-based API became the primary API and the RDD-based API entered maintenance mode.&amp;lt;ref name=&amp;quot;r200&amp;quot; /&amp;gt; The MLlib guide at v4.3.0 says that MLlib still supports the RDD-based API with bug fixes and will not add new features to it.&amp;lt;ref name=&amp;quot;guide&amp;quot; /&amp;gt; The Python package docstring says the same for &amp;lt;code&amp;gt;pyspark.mllib&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;pyinit&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/pyspark/mllib/__init__.py |title=python/pyspark/mllib/__init__.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Planned removal that did not happen.&amp;#039;&amp;#039;&amp;#039; The MLlib guide in Spark 2.0.0 through 2.4.0 said the RDD-based API was &amp;quot;expected to be removed in Spark 3.0&amp;quot;.&amp;lt;ref name=&amp;quot;guide240&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v2.4.0/docs/ml-guide.md |title=MLlib: Main Guide (docs/ml-guide.md at v2.4.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The guide update for the 3.0 release removed that sentence, and the package was not removed.&amp;lt;ref name=&amp;quot;jira30934&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-30934 |title=SPARK-30934: ML, GraphX 3.0 QA: Programming guide update and migration guide |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Individual APIs deprecated and removed.&amp;#039;&amp;#039;&amp;#039; Some classes and methods in the package were deprecated and later removed. Spark 3.0 removed, among others, the Scala classes &amp;lt;code&amp;gt;LogisticRegressionWithSGD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LinearRegressionWithSGD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LassoWithSGD&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RidgeRegressionWithSGD&amp;lt;/code&amp;gt; (deprecated in 2.0), and the &amp;lt;code&amp;gt;runs&amp;lt;/code&amp;gt; parameter of &amp;lt;code&amp;gt;KMeans.train&amp;lt;/code&amp;gt; (deprecated in 2.1).&amp;lt;ref name=&amp;quot;migration&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/ml-migration-guide.md |title=Migration Guide: MLlib (docs/ml-migration-guide.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The PySpark wrappers of the SGD classes are still present in 4.3.0, marked deprecated since 2.0.0, and emit a &amp;lt;code&amp;gt;FutureWarning&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/python/pyspark/mllib/classification.py |title=python/pyspark/mllib/classification.py (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;No Spark Connect.&amp;#039;&amp;#039;&amp;#039; The Spark Connect documentation lists RDD and &amp;lt;code&amp;gt;SparkContext&amp;lt;/code&amp;gt; as unsupported, so spark.mllib code needs a classic Spark application.&amp;lt;ref name=&amp;quot;connect&amp;quot; /&amp;gt; The DataFrame-based &amp;lt;code&amp;gt;pyspark.ml&amp;lt;/code&amp;gt; API works on Spark Connect from Spark 4.0.0.&amp;lt;ref&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/SPARK-50812 |title=SPARK-50812: Support pyspark.ml on Connect |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What the package contains ==&lt;br /&gt;
The RDD-based guide at v4.3.0 covers data types (local vectors and matrices, &amp;lt;code&amp;gt;LabeledPoint&amp;lt;/code&amp;gt;, distributed matrices), basic statistics, linear models, naive Bayes, decision trees and tree ensembles, isotonic regression, alternating least squares, clustering (including streaming k-means), dimensionality reduction (SVD and PCA), feature extraction, frequent pattern mining (FP-growth, association rules, PrefixSpan), evaluation metrics, PMML model export and low-level optimization (SGD and L-BFGS).&amp;lt;ref name=&amp;quot;rddguide&amp;quot; /&amp;gt; Export to the Predictive Model Markup Language (PMML) is documented for spark.mllib models.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/mllib-pmml-model-export.md |title=PMML model export (docs/mllib-pmml-model-export.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== spark.mllib compared with spark.ml ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! !! spark.mllib !! spark.ml&lt;br /&gt;
|-&lt;br /&gt;
! Input&lt;br /&gt;
| [[RDD]] of &amp;lt;code&amp;gt;LabeledPoint&amp;lt;/code&amp;gt; or vectors&lt;br /&gt;
| [[DataFrame]] with a vector column&lt;br /&gt;
|-&lt;br /&gt;
! Training call&lt;br /&gt;
| Static &amp;lt;code&amp;gt;train&amp;lt;/code&amp;gt; methods on algorithm objects&lt;br /&gt;
| &amp;lt;code&amp;gt;Estimator.fit&amp;lt;/code&amp;gt;, usually inside a &amp;lt;code&amp;gt;Pipeline&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Vector type&lt;br /&gt;
| &amp;lt;code&amp;gt;org.apache.spark.mllib.linalg.Vector&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;org.apache.spark.ml.linalg.Vector&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! New features&lt;br /&gt;
| None (maintenance mode)&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
! Spark Connect&lt;br /&gt;
| Not supported&lt;br /&gt;
| Supported from Spark 4.0.0 (Python)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The two vector types are separate since Spark 2.0; the RDD-based API still depends on &amp;lt;code&amp;gt;spark.mllib.linalg&amp;lt;/code&amp;gt;. To move data between them, the migration guide points to &amp;lt;code&amp;gt;asML&amp;lt;/code&amp;gt; on an mllib vector or matrix, &amp;lt;code&amp;gt;Vectors.fromML&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Matrices.fromML&amp;lt;/code&amp;gt;, and the column converters in &amp;lt;code&amp;gt;MLUtils&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;migration&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Migrating to spark.ml ==&lt;br /&gt;
The Spark 3.0 entries in the migration guide name replacements for the removed classes: for example, &amp;lt;code&amp;gt;org.apache.spark.ml.classification.LogisticRegression&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;LogisticRegressionWithLBFGS&amp;lt;/code&amp;gt;) instead of &amp;lt;code&amp;gt;LogisticRegressionWithSGD&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;org.apache.spark.ml.regression.LinearRegression&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;elasticNetParam&amp;lt;/code&amp;gt; set to 1.0 instead of &amp;lt;code&amp;gt;LassoWithSGD&amp;lt;/code&amp;gt;. The guide notes that default regularization differs: &amp;lt;code&amp;gt;regParam&amp;lt;/code&amp;gt; was 0.01 for &amp;lt;code&amp;gt;LassoWithSGD&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;RidgeRegressionWithSGD&amp;lt;/code&amp;gt;, but is 0.0 for &amp;lt;code&amp;gt;LinearRegression&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;migration&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The same logistic regression in both APIs, in a classic PySpark session where &amp;lt;code&amp;gt;spark&amp;lt;/code&amp;gt; is the &amp;lt;code&amp;gt;SparkSession&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# spark.mllib (RDD-based): classic mode only&lt;br /&gt;
from pyspark.mllib.classification import LogisticRegressionWithLBFGS&lt;br /&gt;
from pyspark.mllib.regression import LabeledPoint&lt;br /&gt;
&lt;br /&gt;
rdd = spark.sparkContext.parallelize([&lt;br /&gt;
    LabeledPoint(0.0, [1.1, 0.1]), LabeledPoint(1.0, [2.0, 1.0]),&lt;br /&gt;
    LabeledPoint(0.0, [1.3, -0.5]), LabeledPoint(1.0, [2.2, 1.5])])&lt;br /&gt;
old_model = LogisticRegressionWithLBFGS.train(rdd, iterations=10)&lt;br /&gt;
&lt;br /&gt;
# spark.ml (DataFrame-based): also runs on Spark Connect from 4.0.0&lt;br /&gt;
from pyspark.ml.classification import LogisticRegression&lt;br /&gt;
from pyspark.ml.linalg import Vectors&lt;br /&gt;
&lt;br /&gt;
df = spark.createDataFrame([&lt;br /&gt;
    (0.0, Vectors.dense(1.1, 0.1)), (1.0, Vectors.dense(2.0, 1.0)),&lt;br /&gt;
    (0.0, Vectors.dense(1.3, -0.5)), (1.0, Vectors.dense(2.2, 1.5))],&lt;br /&gt;
    [&amp;quot;label&amp;quot;, &amp;quot;features&amp;quot;])&lt;br /&gt;
new_model = LogisticRegression(maxIter=10).fit(df)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[MLlib]]&lt;br /&gt;
* [[RDD]]&lt;br /&gt;
* [[Spark Connect]]&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
* [[Spark Streaming (DStreams)]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>