We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8085067 commit 4bf26d6Copy full SHA for 4bf26d6
docs/mllib-feature-extraction.md
@@ -576,8 +576,9 @@ parsedData = data.map(lambda x: [float(t) for t in x.split(" ")])
576
transformingVector = Vectors.dense([0.0, 1.0, 2.0])
577
transformer = ElementwiseProduct(transformingVector)
578
579
-# Batch transform.
+# Batch transform
580
transformedData = transformer.transform(parsedData)
581
+# Single-row transform
582
transformedData2 = transformer.transform(parsedData.first())
583
584
{% endhighlight %}
0 commit comments