Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/ml-classification-regression.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,14 @@ Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.classificat

{% include_example python/ml/naive_bayes_example.py %}
</div>

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

Refer to the [R API docs](api/R/spark.naiveBayes.html) for more details.

{% include_example naiveBayes r/ml.R %}
</div>

</div>


Expand Down Expand Up @@ -566,6 +574,13 @@ Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.regression.
{% include_example python/ml/generalized_linear_regression_example.py %}
</div>

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

Refer to the [R API docs](api/R/spark.glm.html) for more details.

{% include_example glm r/ml.R %}
</div>

</div>


Expand Down Expand Up @@ -755,6 +770,13 @@ Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.regression.
{% include_example python/ml/aft_survival_regression.py %}
</div>

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

Refer to the [R API docs](api/R/spark.survreg.html) for more details.

{% include_example survreg r/ml.R %}
</div>

</div>


Expand Down
8 changes: 8 additions & 0 deletions docs/ml-clustering.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ Refer to the [Python API docs](api/python/pyspark.ml.html#pyspark.ml.clustering.

{% include_example python/ml/kmeans_example.py %}
</div>

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

Refer to the [R API docs](api/R/spark.kmeans.html) for more details.

{% include_example kmeans r/ml.R %}
</div>

</div>

## Latent Dirichlet allocation (LDA)
Expand Down