Skip to content

Commit

Permalink
docs typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiedb committed Oct 5, 2023
1 parent 0d502e0 commit cf6e3c0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
13 changes: 10 additions & 3 deletions src/fit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,16 @@ end


"""
fit_evotree(params::EvoTypes{L};
x_train::AbstractMatrix, y_train::AbstractVector, w_train=nothing, offset_train=nothing,
x_eval=nothing, y_eval=nothing, w_eval=nothing, offset_eval=nothing,
fit_evotree(
params::EvoTypes{L};
x_train::AbstractMatrix,
y_train::AbstractVector,
w_train=nothing,
offset_train=nothing,
x_eval=nothing,
y_eval=nothing,
w_eval=nothing,
offset_eval=nothing,
early_stopping_rounds=9999,
print_every_n=9999,
verbosity=1)
Expand Down
20 changes: 18 additions & 2 deletions src/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,15 @@ function init_core(params::EvoTypes{L}, ::Type{CPU}, data, fnames, y_train, w, o
end

"""
init(params::EvoTypes{T,U,S}, X::AbstractMatrix, Y::AbstractVector, W = nothing)
init(
params::EvoTypes,
dtrain,
device::Type{<:Device}=CPU;
target_name,
fnames=nothing,
w_name=nothing,
offset_name=nothing
)
Initialise EvoTree
"""
Expand Down Expand Up @@ -180,7 +188,15 @@ end


"""
init_evotree(params::EvoTypes{T,U,S}, X::AbstractMatrix, Y::AbstractVector, W = nothing)
init(
params::EvoTypes,
x_train::AbstractMatrix,
y_train::AbstractVector,
device::Type{<:Device}=CPU;
fnames=nothing,
w_train=nothing,
offset_train=nothing
)
Initialise EvoTree
"""
Expand Down
4 changes: 3 additions & 1 deletion src/structs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ abstract type CPU <: Device end
abstract type GPU <: Device end

"""
Carries training information for a given tree node
TrainNode{S,V,M}
Carries training information for a given tree node
"""
mutable struct TrainNode{S,V,M}
gain::Float64
Expand Down

2 comments on commit cf6e3c0

@jeremiedb
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

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/92803

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:

git tag -a v0.16.2 -m "<description of version>" cf6e3c0c5ad3c75d5dc44bc95b586736500b48a7
git push origin v0.16.2

Please sign in to comment.