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

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

src/a/z/AZOrange-HEAD/orange/OrangeWidgets/Data/OWConcatenate.py   AZOrange(Download)
            else:
                allDatasets = [self.primary] + [table for table in self.additional.values()]
                newTable,status = dataUtilities.concatenate(allDatasets, useFirstAsLeader = True)
                for attr in status:
                    if attr not in incompatibleAttr: incompatibleAttr.append(attr)
        else:
            if not self.additional:
                newTable = None     
            else:
                newTable, status = dataUtilities.concatenate([table for table in self.additional.values()], useFirstAsLeader = False, mergeDomains = (self.mergeAttributes==0))

src/a/z/AZOrange-HEAD/azorange/AZutilities/evalUtilities.py   AZOrange(Download)
        #Add train bias to the lear_set
        if self.trainBias:
            learn_set = dataUtilities.concatenate([learn_set, self.trainBias], True)[0]
 
        if not learn_set:
            #Add train bias to the lear_set
            if self.trainBias:
                learn_set = dataUtilities.concatenate([learn_set, self.trainBias], True)[0]
            classifiers, results = self._learn_and_test_on_test_data(learners, learn_set, weight, test_set, preprocessors)
            if store_classifiers:

src/a/z/AZOrange-HEAD/tests/source/AZdataUtilitiesTest.py   AZOrange(Download)
        D3=dataUtilities.DataTable(file3)
 
        res=dataUtilities.concatenate([D1,D2,D3],mergeDomains=True,useFirstAsLeader=False)
        self.assertEqual(len(res[0].domain),9,"C1: Wrong number of attributes")
        self.assertEqual(len(res[0]),30,"C1: Wrong number of examples")
                self.assertEqual(res[0][idx][attr.name],ex[attr.name],"C1: Examples values do not match")
 
        res=dataUtilities.concatenate([D2,D1,D3],mergeDomains=False,useFirstAsLeader=False)
        self.assertEqual(len(res[0].domain),3,"C2: Wrong number of attributes")
        self.assertEqual(len(res[0]),30,"C2: Wrong number of examples")
                self.assertEqual(res[0][idx][attr.name],ex[attr.name],"C2: Examples values do not match")
 
        res=dataUtilities.concatenate([D1,D2,D3],mergeDomains=True,useFirstAsLeader=True)
        self.assertEqual(len(res[0].domain),6,"C3: Wrong number of attributes")
        self.assertEqual(len(res[0]),30,"C3: Wrong number of examples")

src/a/z/AZOrange-HEAD/azorange/AZutilities/ConfPredClass.py   AZOrange(Download)
 
    # Add predEx to train
    extTrain = dataUtilities.concatenate([train, newPredEx])
    extTrain = extTrain[0]