You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julia interface to [CatBoost](https://catboost.ai/).
11
+
Julia interface to [CatBoost](https://catboost.ai/). This library is a wrapper CatBoost's Python package via [PythonCall.jl](https://github.com/cjdoris/PythonCall.jl).
12
+
13
+
For a nice introduction to the package, see the [examples](https://github.com/JuliaAI/CatBoost.jl/blob/main/examples/).
14
+
15
+
# Installation
16
+
17
+
This package is available in the Julia General Registry. You can install it with either of the following commands:
model =CatBoostRegressor(iterations =2, learning_rate =1, depth =2)
57
+
mach =machine(model, train_data, train_labels)
58
+
59
+
# Fit model
60
+
MLJBase.fit!(mach)
61
+
62
+
# Get predictions
63
+
preds =predict(model, eval_data)
64
+
65
+
end# module
66
+
```
67
+
68
+
# Restricting Python catboost version
69
+
70
+
By default, `CatBoost.jl` installs the latest compatible version of `catboost` (version `>=1.1`) in your current `CondaPkg.jl` environment. To install a specific version, create a `CondaPkg.toml` file using `CondaPkg.jl`. Below is an example for specifying `catboost` version `v1.1`:
71
+
72
+
```julia
73
+
using CondaPkg
74
+
CondaPkg.add("catboost"; version="=1.1")
75
+
```
76
+
77
+
This will create a `CondaPkg.toml` file in your current envrionment with the restricted `catboost` version. For more information on managing Conda environments with `CondaPkg.jl`, refer to the [official documentation](https://github.com/cjdoris/CondaPkg.jl).
0 commit comments