|
@@ -1,5 +1,6 @@
|
|
|
package com.tzld.piaoquan.ad.engine.commons.score.model;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.aliyun.openservices.eas.predict.http.HttpConfig;
|
|
|
import com.aliyun.openservices.eas.predict.http.PredictClient;
|
|
|
import com.aliyun.openservices.eas.predict.request.TFDataType;
|
|
@@ -190,7 +191,7 @@ public class PAIModelV1 {
|
|
|
request.addFeed(entry.getKey(), TFDataType.DT_STRING, new long[]{items.size()}, entry.getValue());
|
|
|
}
|
|
|
request.addFetch("probs");
|
|
|
- LOGGER.info("PAIModelV1 request={}", request);
|
|
|
+ LOGGER.info("PAIModelV1 request={}", JSONObject.toJSONString(request));
|
|
|
TFResponse response = client.predict(request);
|
|
|
List<Float> result = response.getFloatVals("probs");
|
|
|
if (!CollectionUtils.isEmpty(result)) {
|