The latter has been introduced to avoid reliance of Torch and on anything that uses Torch in the front-end, on a rather short notice, which leads to some code duplication between some methods of the latter and the former. To avoid code duplication, make sure CausalInsight inherits from CausalinsightSlim instead. Note: the latter depends on cached available years data, which the former computes in a way that now uses tensors, you'll need to pay attention when unifying.
The latter has been introduced to avoid reliance of Torch and on anything that uses Torch in the front-end, on a rather short notice, which leads to some code duplication between some methods of the latter and the former. To avoid code duplication, make sure
CausalInsight
inherits fromCausalinsightSlim
instead. Note: the latter depends on cached available years data, which the former computes in a way that now uses tensors, you'll need to pay attention when unifying.