def setUp(self): anchors = FreeViz.init_radial(len(self.data.domain.attributes)) self.projector = projector = FreeViz(scale=False, center=False, initial=anchors, maxiter=10) self.projector.domain = self.data.domain self.projector.components_ = anchors.T self.projection = FreeVizModel(projector, projector.domain, 2) self.projection.pre_domain = self.data.domain
def init_projection(self): anchors = FreeViz.init_radial(len(self.effective_variables)) \ if self.initialization == InitType.Circular \ else FreeViz.init_random(len(self.effective_variables), 2) self.projector = FreeViz(scale=False, center=False, initial=anchors, maxiter=10) data = self.projector.preprocess(self.effective_data) self.projector.domain = data.domain self.projector.components_ = anchors.T self.projection = FreeVizModel(self.projector, self.projector.domain, 2) self.projection.pre_domain = data.domain self.projection.name = self.projector.name