aboutsummaryrefslogtreecommitdiff
path: root/docs/ml-advanced.md
diff options
context:
space:
mode:
authorJagadeesan <as2@us.ibm.com>2016-08-13 11:25:03 +0100
committerSean Owen <sowen@cloudera.com>2016-08-13 11:25:03 +0100
commite46cb78b3b9fd04a50b5ae50f360db612d656a48 (patch)
tree484f9602ab6038fd876a7fb1499a6bb7e2e47b47 /docs/ml-advanced.md
parent91f2735a180f0af1f15303fd0a32633dfd1c1fe0 (diff)
downloadspark-e46cb78b3b9fd04a50b5ae50f360db612d656a48.tar.gz
spark-e46cb78b3b9fd04a50b5ae50f360db612d656a48.tar.bz2
spark-e46cb78b3b9fd04a50b5ae50f360db612d656a48.zip
[SPARK-12370][DOCUMENTATION] Documentation should link to examples …
## What changes were proposed in this pull request? When documentation is built is should reference examples from the same build. There are times when the docs have links that point to files in the GitHub head which may not be valid on the current release. Changed that in URLs to make them point to the right tag in git using ```SPARK_VERSION_SHORT``` …from its own release version] [Streaming programming guide] Author: Jagadeesan <as2@us.ibm.com> Closes #14596 from jagadeesanas2/SPARK-12370.
Diffstat (limited to 'docs/ml-advanced.md')
-rw-r--r--docs/ml-advanced.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ml-advanced.md b/docs/ml-advanced.md
index f5804fdeee..12a03d3c91 100644
--- a/docs/ml-advanced.md
+++ b/docs/ml-advanced.md
@@ -49,7 +49,7 @@ MLlib L-BFGS solver calls the corresponding implementation in [breeze](https://g
## Normal equation solver for weighted least squares
-MLlib implements normal equation solver for [weighted least squares](https://en.wikipedia.org/wiki/Least_squares#Weighted_least_squares) by [WeightedLeastSquares](https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/optim/WeightedLeastSquares.scala).
+MLlib implements normal equation solver for [weighted least squares](https://en.wikipedia.org/wiki/Least_squares#Weighted_least_squares) by [WeightedLeastSquares]({{site.SPARK_GITHUB_URL}}/blob/v{{site.SPARK_VERSION_SHORT}}/mllib/src/main/scala/org/apache/spark/ml/optim/WeightedLeastSquares.scala).
Given $n$ weighted observations $(w_i, a_i, b_i)$:
@@ -73,7 +73,7 @@ In order to make the normal equation approach efficient, WeightedLeastSquares re
## Iteratively reweighted least squares (IRLS)
-MLlib implements [iteratively reweighted least squares (IRLS)](https://en.wikipedia.org/wiki/Iteratively_reweighted_least_squares) by [IterativelyReweightedLeastSquares](https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/optim/IterativelyReweightedLeastSquares.scala).
+MLlib implements [iteratively reweighted least squares (IRLS)](https://en.wikipedia.org/wiki/Iteratively_reweighted_least_squares) by [IterativelyReweightedLeastSquares]({{site.SPARK_GITHUB_URL}}/blob/v{{site.SPARK_VERSION_SHORT}}/mllib/src/main/scala/org/apache/spark/ml/optim/IterativelyReweightedLeastSquares.scala).
It can be used to find the maximum likelihood estimates of a generalized linear model (GLM), find M-estimator in robust regression and other optimization problems.
Refer to [Iteratively Reweighted Least Squares for Maximum Likelihood Estimation, and some Robust and Resistant Alternatives](http://www.jstor.org/stable/2345503) for more information.