Repository navigation
v1.4.0
NeuroTreeModels v1.4.0
Model constructors (NeuroTreeRegressor, NeuroTreeClassifier) now include the following arguments:
metric: the evaluation metric to be trackedearly_stopping_roundsdevice=:cpu: either:cpuor:gpugpuID=0: the gpu device ID
Example:
config = NeuroTreeRegressor(
loss = :mse,
nrounds = 10,
num_trees = 16,
depth = 5,
device = :cpu
)These arguments have been removed from fit
m = NeuroTreeModels.fit(config, dtrain; feature_names, target_name)This provides the ability to train on GPU when using the MLJ interface:
using MLJBase, NeuroTreeModels
m = NeuroTreeRegressor(depth=5, nrounds=10, device=:gpu)
X, y = @load_boston
mach = machine(m, X, y) |> fit!
p = predict(mach, X)Note that inference is always performed on :cpu when using MLJ's predict.
For GPU inference, should use p = mach.fitresult(X; device=:gpu)
Merged pull requests:
- Jdb/api (#14) (@jeremiedb)