The lambda-strategy is a simple energy-entropy strategy that depends on a parameter lambda between 0 and 1, see Section 6.1 of Pal and Wong (2013) for more details. Given the portfolio weights of the previous time period, the portfolio weights of the next period is a convex combination of the previous weights and the current market weights, chosen in such a way that the drift term is a constant proportion of the free energy.
In this implementation an SDE approximation is used. Hence the function is accurate only when lambda is small (say
References
Pal, S. and T.-K. L. Wong (2013). Energy, entropy, and arbitrage. arXiv preprint arXiv:1308.5376.