The simplest way to calculate the ratio is directly estimate P S (x) and P T (x), but in the case of complex models, the problem will be more complicated.
the method that directly models the probability density ratio was studied.