# Dot overloading not supported in ScikitLearn.jl

**URL:** <https://discourse.julialang.org/t/dot-overloading-not-supported-in-scikitlearn-jl/25192>\
**Category:** Machine Learning\
**Created:** [June 12, 2019, 2:18pm UTC](https://discourse.julialang.org/t/dot-overloading-not-supported-in-scikitlearn-jl/25192 "2019-06-12T14:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tosalonijain](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tosalonijain/32/3624_2.png) [@tosalonijain](https://discourse.julialang.org/u/tosalonijain)\
**Post date:** [June 12, 2019, 2:18pm UTC](https://discourse.julialang.org/t/dot-overloading-not-supported-in-scikitlearn-jl/25192/1 "2019-06-12T14:18:54Z")

</div>

Hello,  
I am working on Julia and using ScikitLearn.jl as a package to access the ScikitLearn models of Machine Learning. As per the examples cited in the ScikitLearn.jl github repository documentation, I have used, for example:

```julia
@sk_import linear_model: LogisticRegression 

```

As a result of which I am getting the following warning:

> Warning: `getindex(o::PyObject, s::Symbol)` is deprecated in favor of dot overloading (`getproperty`) so elements should now be accessed as e.g. `o.s` instead of `o[:s]`.  
> │ caller = top-level scope at Skcore.jl:158  
> └ @ Core ~/.julia/packages/ScikitLearn/HK6Vs/src/Skcore.jl:158

Could anyone please help me in solving this warning issue? Thanks 🙂 .

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [June 12, 2019, 2:20pm UTC](https://discourse.julialang.org/t/dot-overloading-not-supported-in-scikitlearn-jl/25192/2 "2019-06-12T14:20:24Z")

</div>

See [https://github.com/cstjean/ScikitLearn.jl/issues/55](https://github.com/cstjean/ScikitLearn.jl/issues/55). It seems to be fixed on the latest master.
