How to flow variable to optimise a parameter?

Let’s consider the example workflow for Outlier Detection.

How do I find the optimal value of k in the Numerical Outliers part?

Does this help: https://www.youtube.com/watch?v=IlqepyIba6Y?