# Log automatic selection of sensitivity algorithm

**URL:** <https://discourse.julialang.org/t/log-automatic-selection-of-sensitivity-algorithm/100691>\
**Category:** Machine Learning\
**Tags:** sciml, ad, diffeqflux\
**Created:** [June 22, 2023, 9:43am UTC](https://discourse.julialang.org/t/log-automatic-selection-of-sensitivity-algorithm/100691 "2023-06-22T09:43:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nina](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@nina](https://discourse.julialang.org/u/nina)\
**Post date:** [June 22, 2023, 9:43am UTC](https://discourse.julialang.org/t/log-automatic-selection-of-sensitivity-algorithm/100691/1 "2023-06-22T09:43:22Z")

</div>

Dear all,  
I am training a universal differential equation with Zygote without specifying what sensitivity algorithm I am using. Hence, according to [the SciMLSensitivity Docs](https://docs.sciml.ai/SciMLSensitivity/stable/manual/differential_equation_sensitivities/#sensitivity_diffeq) a “smart polyalgorithm is used to automatically determine the most appropriate method for a given equation”. Is there a way to log, i.e. access the name of the chosen sensitivity algorithm?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [June 22, 2023, 9:48pm UTC](https://discourse.julialang.org/t/log-automatic-selection-of-sensitivity-algorithm/100691/2 "2023-06-22T21:48:19Z")

</div>

Right now it doesn’t save it to the output. Open an issue and we can think about changing that. If you need it today then Revise’ing a logging statement into the default\_alg call in the SciMLSensitivity pipeline is a trivial way to make it print out what you’d need, but of course that’s a workaround hack.
