示例#1
0
 def mapping(data):
     return Dataset([
         DataInstance(
             x=it[0],
             y=it[1]
         ) for it in data
     ], copy=False)
示例#2
0
 def mapping(data):
     return Dataset([
         DataInstance(
             x=it[0],
             y=it[2],
             meta= { "reference": it[1] }
         ) for it in data
     ], copy=False)