File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class _FactorizationMachineSerializer(BaseSerializer):
40
40
41
41
CONTENT_TYPE = "application/json"
42
42
43
- def serialize (data ):
43
+ def serialize (self , data ):
44
44
js = {"instances" : []}
45
45
for row in data :
46
46
js ["instances" ].append ({"features" : row .tolist ()})
Original file line number Diff line number Diff line change @@ -916,7 +916,7 @@ class _FactorizationMachineSerializer(BaseSerializer):
916
916
917
917
CONTENT_TYPE = "application/json"
918
918
919
- def serializer ( data ):
919
+ def serialize ( self , data ):
920
920
js = {"instances" : []}
921
921
for row in data :
922
922
js ["instances" ].append ({"features" : row .tolist ()})
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ class PredictionDataSerializer(BaseSerializer):
223
223
224
224
CONTENT_TYPE = "application/json"
225
225
226
- def serialize (data ):
226
+ def serialize (self , data ):
227
227
js = {"instances" : []}
228
228
for row in data :
229
229
js ["instances" ].append ({"features" : row .tolist ()})
You can’t perform that action at this time.
0 commit comments