-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from Evovest/dev
fix GC GPU & docs typo
- Loading branch information
Showing
5 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
authors = ["jeremiedb <[email protected]>"] | ||
name = "EvoTrees" | ||
uuid = "f6006082-12f8-11e9-0c9c-0d5d367ab1e5" | ||
version = "0.12.3" | ||
version = "0.12.4" | ||
|
||
[deps] | ||
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using Revise | ||
using Statistics | ||
using StatsBase: sample | ||
using EvoTrees | ||
using BenchmarkTools | ||
using CUDA | ||
|
||
nrounds = 200 | ||
nthread = Base.Threads.nthreads() | ||
|
||
@info nthread | ||
|
||
# EvoTrees params | ||
params_evo = EvoTreeRegressor( | ||
T=Float32, | ||
loss="linear", | ||
nrounds=nrounds, | ||
alpha=0.5, | ||
lambda=0.0, | ||
gamma=0.0, | ||
eta=0.05, | ||
max_depth=6, | ||
min_weight=1.0, | ||
rowsample=1.0, | ||
colsample=1.0, | ||
nbins=64, | ||
device = "gpu" | ||
) | ||
|
||
nobs = Int(11_664_400) | ||
num_feat = Int(36) | ||
@info "testing with: $nobs observations | $num_feat features." | ||
x_train = rand(nobs, num_feat) | ||
y_train = rand(size(x_train, 1)) | ||
|
||
@info "evotrees train GPU:" | ||
@time m_evo_gpu = fit_evotree(params_evo; x_train, y_train); | ||
for i in 1:5 | ||
@time m_evo_gpu = fit_evotree(params_evo; x_train, y_train); | ||
end | ||
# @time m_evo = fit_evotree(params_evo; x_train, y_train, x_eval=x_train, y_eval=y_train, metric=metric_evo, print_every_n=100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
689a01e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
689a01e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/71077
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: