Skip to content

Commit

Permalink
Merge 49253a0 into 4bdf714
Browse files Browse the repository at this point in the history
  • Loading branch information
barucden committed Aug 7, 2020
2 parents 4bdf714 + 49253a0 commit b60338b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/classification/tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module treeclassifier
# find an optimal split that satisfy the given constraints
# (max_depth, min_samples_split, min_purity_increase)
function _split!(
X :: Matrix{S}, # the feature array
X :: AbstractMatrix{S}, # the feature array
Y :: AbstractVector{Int}, # the label array
W :: AbstractVector{U}, # the weight vector
purity_function :: Function,
Expand Down Expand Up @@ -226,7 +226,7 @@ module treeclassifier
end

function check_input(
X :: Matrix{S},
X :: AbstractMatrix{S},
Y :: AbstractVector{T},
W :: AbstractVector{U},
max_features :: Int,
Expand Down
4 changes: 2 additions & 2 deletions src/regression/tree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module treeregressor
# find an optimal split that satisfy the given constraints
# (max_depth, min_samples_split, min_purity_increase)
function _split!(
X :: Matrix{S}, # the feature array
X :: AbstractMatrix{S}, # the feature array
Y :: AbstractVector{Float64}, # the label array
W :: AbstractVector{U},
node :: NodeMeta{S}, # the node to split
Expand Down Expand Up @@ -229,7 +229,7 @@ module treeregressor
end

function check_input(
X :: Matrix{S},
X :: AbstractMatrix{S},
Y :: AbstractVector{T},
W :: AbstractVector{U},
max_features :: Int,
Expand Down

0 comments on commit b60338b

Please sign in to comment.