You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2016/08/11 17:14:36 UTC
[5/5] incubator-predictionio git commit: Fix spelling mistakes
Fix spelling mistakes
Fix all of the mispelled "algorithm" spelling mistakes and that engne.json to engine.json
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/8565a739
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/8565a739
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/8565a739
Branch: refs/heads/develop
Commit: 8565a7394ca8da2b7686e24afb7d9ddb68e76d63
Parents: ba4d2ce
Author: IAlwaysBeCoding <er...@gmail.com>
Authored: Sat May 21 21:49:09 2016 -0500
Committer: hyukjinkwon <gu...@gmail.com>
Committed: Wed Aug 10 11:05:26 2016 +0900
----------------------------------------------------------------------
.../source/templates/classification/add-algorithm.html.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/8565a739/docs/manual/source/templates/classification/add-algorithm.html.md
----------------------------------------------------------------------
diff --git a/docs/manual/source/templates/classification/add-algorithm.html.md b/docs/manual/source/templates/classification/add-algorithm.html.md
index c1a1e8b..f8665ee 100644
--- a/docs/manual/source/templates/classification/add-algorithm.html.md
+++ b/docs/manual/source/templates/classification/add-algorithm.html.md
@@ -26,7 +26,7 @@ import org.apache.spark.mllib.tree.RandomForest // CHANGED
import org.apache.spark.mllib.tree.model.RandomForestModel // CHANGED
```
-These are the necessary classes in order to use the MLLib's Random Forest algporithm.
+These are the necessary classes in order to use the MLLib's Random Forest algorithm.
Modify the `AlgorithmParams` class for the Random Forest algorithm:
@@ -88,10 +88,10 @@ class RandomForestAlgorithm(val ap: RandomForestAlgorithmParams) // CHANGED
}
```
-Note that the MLlib Random Forest algorithm takes the same training data as the Navie Bayes algoithm (ie, RDD[LabeledPoint]) so you don't need to modify the `DataSource`, `TrainigData` and `PreparedData` classes. If the new algoritm to be added requires different types of training data, then you need to modify these classes accordingly to accomodate your new algorithm.
+Note that the MLlib Random Forest algorithm takes the same training data as the Navie Bayes algorithm (ie, RDD[LabeledPoint]) so you don't need to modify the `DataSource`, `TrainigData` and `PreparedData` classes. If the new algorithm to be added requires different types of training data, then you need to modify these classes accordingly to accomodate your new algorithm.
## Update Engine.scala
-Modify the EngineFactory to add the new algorithm class `RandomForestAlgorithm` you just defined and give it a name `"randomforest"`. The name will be used in `engne.json` to specify which algorithm to use.
+Modify the EngineFactory to add the new algorithm class `RandomForestAlgorithm` you just defined and give it a name `"randomforest"`. The name will be used in `engine.json` to specify which algorithm to use.
```scala
object ClassificationEngine extends IEngineFactory {