"""Implements the Box-Cox model:author: Michel Bierlaire:date: Wed Oct 25 08:52:44 2023"""frombiogeme.expressionsimport(BoxCox,Expression,ExpressionOrNumeric,validate_and_convert,)
[docs]defboxcox(x:ExpressionOrNumeric,ell:ExpressionOrNumeric)->Expression:""" Box-Cox transform :param x: a variable to transform. :param ell: parameter of the transformation. :return: the Box-Cox transform """returnBoxCox(validate_and_convert(x),validate_and_convert(ell))