# MLJ w/Scikitlearn: passing return\_std to predict

**URL:** <https://discourse.julialang.org/t/mlj-w-scikitlearn-passing-return-std-to-predict/91654>\
**Category:** Machine Learning\
**Tags:** mlj, scikitlearn\
**Created:** [December 14, 2022, 7:52pm UTC](https://discourse.julialang.org/t/mlj-w-scikitlearn-passing-return-std-to-predict/91654 "2022-12-14T19:52:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tlienart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlienart/32/7640_2.png) [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Post date:** [December 15, 2022, 3:44pm UTC](https://discourse.julialang.org/t/mlj-w-scikitlearn-passing-return-std-to-predict/91654/2 "2022-12-15T15:44:48Z")

</div>

You’re not missing something, there’s currently no way to pass that argument. It might be good to open an issue at MLJScikitLearnInterface to discuss this (and you could paste what follows).

I doubt that MLJ’s `predict` signature will be adapted to match this one but I’ll let @ablaom or @samuel_okon discuss that).

What could work is to pass the `return_std` as a new field of `BayesianRidgeRegressor` here [MLJScikitLearnInterface.jl/linear-regressors.jl at 36882f14321e7e9889aac31447eeed0102eb052f · JuliaAI/MLJScikitLearnInterface.jl · GitHub](https://github.com/JuliaAI/MLJScikitLearnInterface.jl/blob/36882f14321e7e9889aac31447eeed0102eb052f/src/models/linear-regressors.jl#L37)

then pick that up at predict time here [MLJScikitLearnInterface.jl/macros.jl at 36882f14321e7e9889aac31447eeed0102eb052f · JuliaAI/MLJScikitLearnInterface.jl · GitHub](https://github.com/JuliaAI/MLJScikitLearnInterface.jl/blob/36882f14321e7e9889aac31447eeed0102eb052f/src/macros.jl#L197)

this would also require ScikitLearn.jl to allow passing a `return_std=true` to `predict`, that might also require opening an issue there cc @cstjean

---

_[View the full topic](https://discourse.julialang.org/t/mlj-w-scikitlearn-passing-return-std-to-predict/91654)._
