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
def test_initial(self): FreeViz.init_radial(1) FreeViz.init_radial(2) FreeViz.init_radial(3) FreeViz.init_random(2, 4, 5)