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.
instance-based methods have not been studied as much as feature-based methods.