Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngCvSVM.py   AZOrange(Download)
        trainingData = self.imputer(trainingData)
        if self.scaleData:
            self.scalizer = dataUtilities.scalizer()
            for attr in ("nMin","nMax","nClassMin","nClassMax"):
                setattr(self.scalizer, attr, getattr(self, attr))
            return None
        if os.path.isdir(str(os.path.join(thePath,"scalingValues"))):
            scalizer = dataUtilities.scalizer(file=str(os.path.join(thePath,"scalingValues"))) 
        else:
            scalizer = None

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngCvBayes.py   AZOrange(Download)
        trainingData = self.imputer(trainingData)
        if self.scale:
            self.scalizer = dataUtilities.scalizer()
            self.scalizer.scaleClass = False
            self.scalizer.nMin = -1
        # Load Scaling Values        
        if os.path.isdir(str(os.path.join(thePath,"scalingValues"))):
            scalizer = dataUtilities.scalizer(file=str(os.path.join(thePath,"scalingValues")))
        else:
            scalizer = None

src/a/z/AZOrange-HEAD/tests/source/AZdataUtilitiesTest.py   AZOrange(Download)
    def test_scalizer(self):
        """Test the scalizer """
        scaler = dataUtilities.scalizer(data=self.testData)     # The new scalizer 
        scalerX = dataUtilities.scalizerX(data=self.testData)   # derived from scalizer which mimics the old scalizer version for old models
        scaledData = scaler.scaleAndContinuizeData(self.testData)
        #self.assertEqual(scalerX.convertClass(self.testData.domain[self.testData.domain.classVar],XscaledEx[XscaledEx.domain.classVar]).value,self.testData[1][self.testData.domain.classVar])
 
        scaler2=dataUtilities.scalizer()
        scaler2.analyzeData(self.testData)
        new=scaler2.scaleAndContinuizeData(self.testData)
        scaler2.saveScalingValues(scalingFile)
        scaledData2 = scaler2.scaleAndContinuizeData(self.testData)
        scaler3=dataUtilities.scalizer(file=scalingFile)
        scaledData3 = scaler3.scaleAndContinuizeData(self.testData)
 
        self.assertEqual(str(scaledData2[4]),str(scaledData3[4]))
 
        scaler4=dataUtilities.scalizer(file=scalingFile)
        self.assertEqual(str(scaledData2[2]),str(scaler4.scaleEx(self.testData[2])))
 
        #Test with continuous class
        data = dataUtilities.DataTable(os.path.join(AZOC.AZORANGEHOME,"tests/source/data/Reg_No_metas_FullNumeric_Train.tab"))
        scaler4 = dataUtilities.scalizer(data=data)