def TrainUsingLR(xmls, annotatedxmlloc): LR = LogisticRegressor() trainer = Utils.Trainer.Trainer() tableslist = list() for xml in xmls: tableslist.append(trainer.readAnnotatedxmlforTableDecomposition(annotatedxmlloc + xml + "_TD_ANNOTATED")) LR.domaintrainforTableDecomposition(tableslist) return LR
def TrainUsingLR(xmls, annotatedxmlloc): LR = LogisticRegressor() trainer = Utils.Trainer.Trainer() tableslist = list() for xml in xmls: tableslist.append( trainer.readAnnotatedxmlforTableDecomposition(annotatedxmlloc + xml + "_TD_ANNOTATED")) LR.domaintrainforTableDecomposition(tableslist) return LR