Registry / other / spark-mllib-2-11

spark-mllib-2-11

JSON →
library2.4.8javamavenunverified

Apache Spark's scalable machine learning library providing algorithms and utilities for ML tasks.

<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-mllib_2.11</artifactId> <version>2.4.8</version> </dependency>
INSTALL
IMPORT
SIG · SPARK-MLLIB-2-11
S
spark-mllib-2-11
otherjavav2.4.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogisticRegressionWithSGD
org.apache.spark.mllib.classification.LogisticRegressionWithSGD

Sets up a Spark context for MLlib operations.

import org.apache.spark.mllib.classification.LogisticRegressionWithSGD; import org.apache.spark.mllib.regression.LabeledPoint; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaSparkContext; public class Example { public static void main(String[] args) { SparkConf conf = new SparkConf().setAppName("MLlib Example").setMaster("local"); JavaSparkContext sc = new JavaSparkContext(conf); // Training data would be loaded here sc.close(); } }
Debug
Known issues
breakingSpark MLlib is deprecated in favor of ML (DataFrame-based) API in Spark 2.x and later.
fix
Use org.apache.spark.ml package for new projects.
affects: >=2.0.0
Upgrade
Version history
2.4.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
spark-mllib-2-11 — mvn dependency:get spark-mllib-2-11 · libregistry