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

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

src/a/z/AZOrange-HEAD/azorange/AZutilities/AZOrangePredictor.py   AZOrange(Download)
                    traceLog += "Calculating BBRC...\n"
                    print "Calculating BBRC desc..."
                    self.smilesData = getBBRCDesc.getBBRCDescResult(self.smilesData, algo = "FTM", minSupPar = 1, descList = bbrcDesc)
                # Detect if the descripts calaculation or something else went wrong!

src/a/z/AZOrange-HEAD/tests/source/AZorngBBRCDescTest.py   AZOrange(Download)
    def test_bbrc(self):
        """ Test if bbrc is running properly """
        import bbrc
        # the minimum support for BBRC is absolute not relative like for FTM
        result = getBBRCDesc.getBBRCDescResult(self.data, "BBRC", 2)
    def test_ftm(self):
        """Test if ftm is running properly"""
        result = getBBRCDesc.getBBRCDescResult(self.data,"FTM", 6)
        expected_atts = 31
        expected_data_length = 32
    def test_smartsRecalc(self):
        """Test bbrc feature recalculation"""
        result = getBBRCDesc.getBBRCDescResult(self.data, "FTM", 6)
        smarts = [smrt.name for smrt in result.domain.attributes[len(self.data.domain.attributes):]]
        result2 = getBBRCDesc.getSMARTSrecalcDesc(self.data,smarts)