Skip to content
Snippets Groups Projects
Commit b5c78562 authored by Örjan Lundberg's avatar Örjan Lundberg Committed by Sean Owen
Browse files

Update KMeansExample.scala

## What changes were proposed in this pull request?
example does not work wo DataFrame import

## How was this patch tested?

example doc only

example does not work wo DataFrame import

Author: Örjan Lundberg <orjan.lundberg@gmail.com>

Closes #12277 from oluies/patch-1.
parent f4344582
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,8 @@ import org.apache.spark.{SparkConf, SparkContext}
// $example on$
import org.apache.spark.ml.clustering.KMeans
import org.apache.spark.mllib.linalg.Vectors
// $example off$
import org.apache.spark.sql.{DataFrame, SQLContext}
// $example off$
/**
* An example demonstrating a k-means clustering.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment