cstjean / ScikitLearn.jl

Julia implementation of the scikit-learn API https://cstjean.github.io/ScikitLearn.jl/dev/
Other
547 stars 75 forks source link

Issue in importing `RandomForestRegressor` in Julia #113

Closed shayandavoodii closed 2 years ago

shayandavoodii commented 2 years ago

Hi, I have an issue in importing RandomForestRegressor in Julia. Based on the Official doc, I expected to be able to import RandomForestRegressor using @sk_import ensemble: RandomForestRegressor. But right after running it in Julia, it throws a LoadError:

julia> @sk_import ensemble: RandomForestRegressor
ERROR: LoadError: UndefVarError: @sk_import not defined
in expression starting at c:\Users\Shayan\Desktop\AUT\Thesis\test.jl:7

Where is the problem?


I should mention that I've imported the ScikitLearn.jl package without any problem before trying to import the RandomForestRegressor:

using ScikitLearn: fit!, predict
using ScikitLearn.GridSearch: RandomizedSearchCV
shayandavoodii commented 2 years ago

I found the answer here.