Skip to content

Commit

Permalink
Some code refinement (addresses #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewilliami committed Oct 27, 2020
1 parent 9ba461e commit 8d75985
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AdaBoost.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ function learn(
end

# choose the classifier $h_t$ with the lowest error $\varepsilon_t$
min_error_idx = argmin(classification_errors) # returns the index of the minimum in the array # consider `findmin`
best_error = classification_errors[min_error_idx]
best_error, min_error_idx = findmin(classification_errors)
best_feature_idx = feature_indices[min_error_idx]

# set feature weight
Expand Down

0 comments on commit 8d75985

Please sign in to comment.