Skip to content

Commit

Permalink
Add java size hint example to spark.ml docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBago committed Jan 18, 2018
1 parent 00f93a6 commit 0cdfc1b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/ml-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -1310,15 +1310,23 @@ invalid values downstream.
<div class="codetabs">
<div data-lang="scala" markdown="1">

Refer to the [VectorAssembler Scala docs](api/scala/index.html#org.apache.spark.ml.feature.VectorSizeHint)
Refer to the [VectorSizeHint Scala docs](api/scala/index.html#org.apache.spark.ml.feature.VectorSizeHint)
for more details on the API.

{% include_example scala/org/apache/spark/examples/ml/VectorSizeHintExample.scala %}
</div>

<div data-lang="java" markdown="1">

Refer to the [VectorSizeHint Java docs](api/java/org/apache/spark/ml/feature/VectorSizeHint.html)
for more details on the API.

{% include_example java/org/apache/spark/examples/ml/JavaVectorSizeHintExample.java %}
</div>

<div data-lang="python" markdown="1">

Refer to the [VectorAssembler Python docs](api/python/pyspark.ml.html#pyspark.ml.feature.VectorSizeHint)
Refer to the [VectorSizeHint Python docs](api/python/pyspark.ml.html#pyspark.ml.feature.VectorSizeHint)
for more details on the API.

{% include_example python/ml/vector_size_hint_example.py %}
Expand Down

0 comments on commit 0cdfc1b

Please sign in to comment.