Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Feb 14, 2023
1 parent dbcb91d commit 413a2d9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/DecisionTree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using DelimitedFiles
using LinearAlgebra
using Random
using Statistics
using AbstractTrees: AbstractTrees
import AbstractTrees

export Leaf,
Node,
Expand Down
2 changes: 1 addition & 1 deletion src/classification/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function build_forest(
min_samples_split,
min_purity_increase;
loss,
impurity_importance=impurity_importance,
impurity_importance,
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/regression/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function build_forest(
min_samples_split,
min_purity_increase;
rng=_rng,
impurity_importance=impurity_importance,
impurity_importance,
)
end
else # each thread gets its own seeded rng
Expand Down
10 changes: 5 additions & 5 deletions test/regression/energy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# https://archive.ics.uci.edu/ml/datasets/Appliances+energy+prediction

@testset "energy.jl" begin
download(
"https://archive.ics.uci.edu/ml/machine-learning-databases/00374/energydata_complete.csv",
"energy.csv",
)
energy = readcsv("energy.csv")
energy = let
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/00374/energydata_complete.csv"
tmp_path = download(url)
readcsv(tmp_path)
end

features = energy[2:end, 3:end]
labels = float.(energy[2:end, 2])
Expand Down

0 comments on commit 413a2d9

Please sign in to comment.