https://github.com/apache/spark
Revision 10c68366e5474f131f7ea294e6abee4e02fca9f3 authored by FavioVazquez on 12 September 2017, 09:33:35 UTC, committed by Sean Owen on 12 September 2017, 09:33:43 UTC
## What changes were proposed in this pull request?

Fixed wrong documentation for Mean Absolute Error.

Even though the code is correct for the MAE:

```scala
Since("1.2.0")
  def meanAbsoluteError: Double = {
    summary.normL1(1) / summary.count
  }
```
In the documentation the division by N is missing.

## How was this patch tested?

All of spark tests were run.

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: FavioVazquez <favio.vazquezp@gmail.com>
Author: faviovazquez <favio.vazquezp@gmail.com>
Author: Favio André Vázquez <favio.vazquezp@gmail.com>

Closes #19190 from FavioVazquez/mae-fix.

(cherry picked from commit e2ac2f1c71a0f8b03743d0d916dc0ef28482a393)
Signed-off-by: Sean Owen <sowen@cloudera.com>
1 parent b1b5a7f
History
Tip revision: 10c68366e5474f131f7ea294e6abee4e02fca9f3 authored by FavioVazquez on 12 September 2017, 09:33:35 UTC
[SPARK-21976][DOC] Fix wrong documentation for Mean Absolute Error.
Tip revision: 10c6836

README.md

back to top