Skip to content

Commit

Permalink
Merge pull request #41 from tlienart/master
Browse files Browse the repository at this point in the history
removing manifest
  • Loading branch information
jeremiedb authored Feb 17, 2020
2 parents 49267db + 5d85f85 commit 7874e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 252 deletions.
250 changes: 0 additions & 250 deletions Manifest.toml

This file was deleted.

4 changes: 2 additions & 2 deletions src/fit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function fit_evotree(params, X_train, Y_train;
model, cache = init_evotree(params, X_train, Y_train)
iter = 1

if params.metric != :none && !isnothing(X_eval)
if params.metric != :none && X_eval !== nothing
pred_eval = predict(model.trees[1], X_eval, model.K)
end

Expand All @@ -223,7 +223,7 @@ function fit_evotree(params, X_train, Y_train;
grow_evotree!(model, cache)
# callback function
if params.metric != :none
if !isnothing(X_eval)
if X_eval !== nothing
predict!(pred_eval, model.trees[model.params.nrounds+1], X_eval)
metric_track.metric = eval_metric(Val{params.metric}(), pred_eval, Y_eval, params.α)
else
Expand Down

0 comments on commit 7874e4a

Please sign in to comment.