Github user grzegorz-chilkiewicz commented on a diff in the pull request:
https://github.com/apache/spark/pull/11218#discussion_r54228862
--- Diff:
mllib/src/test/scala/org/apache/spark/ml/feature/NormalizerSuite.scala ---
@@ -105,6 +105,23 @@ class NormalizerSuite extends SparkFunSuite with
MLlibTestSparkContext with Defa
assertValues(result, l1Normalized)
}
+ test("Normalization should throw adequate exception on input type
mismatch") {
+ val data = Seq(Tuple1("string value"))
+
+ val df = sqlContext.createDataFrame(data).toDF("features")
+
+ val normalizer = new Normalizer()
+ .setInputCol("features")
+ .setOutputCol("polyFeatures")
--- End diff --
Fixed: `normalized_features` is the column name used in other tests in
NormalizerSuite.scala,
thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]