sentence1: the iterative scaling algorithm combined with monte carlo simulation is used to train the weights in this generative model .
sentence2: the obtained average observations are set as constraints , and the improved iterative scaling algorithm is employed to evaluate the weights .