Skip to content

Commit

Permalink
minor doc
Browse files Browse the repository at this point in the history
  • Loading branch information
manishamde committed May 18, 2014
1 parent 1dd2735 commit 7e5f08c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,7 @@ object DecisionTree extends Serializable with Logging {
val binIndex = {
if (strategy.isMultiClassification) {
sequentialBinSearchForCategoricalFeatureInBinaryClassification()
}
else {
} else {
sequentialBinSearchForCategoricalFeatureInMultiClassClassification()
}
}
Expand All @@ -601,7 +600,7 @@ object DecisionTree extends Serializable with Logging {
* For l nodes, k features the storage is as follows:
* label, b_11, b_12, .. , b_1k, b_21, b_22, .. , b_2k, b_l1, b_l2, .. , b_lk,
* where b_ij is an integer between 0 and numBins - 1 for regressions and binary
* classification and an invalid value for categorical feature in multiclass classification.
* classification and the categorical feature value in multiclass classification.
* Invalid sample is denoted by noting bin for feature 1 as -1.
*/
def findBinsForLevel(labeledPoint: WeightedLabeledPoint): Array[Double] = {
Expand Down

0 comments on commit 7e5f08c

Please sign in to comment.