def setUp(self, K=7):
    self.K = K
    PRNG = np.random.RandomState(867)
    X = PRNG.randn(100,2)
    self.Data = XData(X=X)

    aPDict = dict(alpha0=1.0)
    oPDict = dict(min_covar=1e-9)
    self.hmodel = HModel.CreateEntireModel('EM','MixModel','ZMGauss', 
                                            aPDict, oPDict, self.Data)
    modelB = self.hmodel.copy()    
    initParams = dict(initname='randexamples', seed=0, K=self.K)
    modelB.init_global_params(self.Data, **initParams)
    ModelWriter.save_model(modelB, '/tmp/', 'Test')
    self.modelB = modelB
Construct me.
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/init/TestFromSaved.py/TestFromScratchGauss.setUp--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/openid/server/server.py/WebResponse.__init__