示例#1
0
文件: test_rules.py 项目: yaps/maf
    def _process_task(self, data):
        task = TestTask()

        task.set_input(0, '\n'.join([' '.join([str(e) for e in line]) for line in data]) + '\n')
        task.outputs.setsize(3)
        
        rule = rules.segment_without_label_bias(self.weights)
        rule.fun(task)
        return task
示例#2
0
文件: test_rules.py 项目: nozyh/maf
 def _process_task(self, data):
     task = SegmentLibsvmTask(data, len(self.weights))
     rule = rules.segment_without_label_bias(self.weights)
     rule.fun(task)
     return task