julia> using RDatasets: dataset
julia> iris = dataset(“datasets”, “iris”);
julia> first(iris, 5)
…
julia> X = convert(Array, iris[!, [:SepalLength, :SepalWidth, :PetalLength, :PetalWidth]])
…
julia> y = convert(Array, iris[!, :Species])
…
julia> using ScikitLearn
julia> @sk_import linear_model: LogisticRegression
PyObject <class ‘sklearn.linear_model._logistic.LogisticRegression’>
julia> model = LogisticRegression(fit_intercept=true, max_iter = 200)
PyObject LogisticRegression(max_iter=200)
julia> fit!(model, X, y);
UndefVarError: fit! not defined
Stacktrace:
[1] top-level scope at In[48]:1
[2] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1091
why