机器学习PAI在输出预测结果的时候,抛了这个异常,请问这个是什么原因呢?
label|pred|pred_detail
-----|----|-----------
Exception in thread "main" ERROR: 0x0860080000001001-Unclassified error: Failed to call addValue with value: (UnnamedTable$0,[+I[0, 0, {"0":1.0,"1":0.0}], +I[1, 1, {"0":0.0,"1":1.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[1, 1, {"0":0.0,"1":1.0}], +I[0, 0, {"0":0.6666666666666666,"1":0.3333333333333333}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[1, 1, {"0":0.0,"1":1.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":0.6666666666666666,"1":0.3333333333333333}], +I[0, 0, {"0":1.0,"1":0.0}], +I[1, 1, {"0":0.0,"1":1.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[1, 0, {"0":0.5,"1":0.5}], +I[1, 1, {"0":0.0,"1":1.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[1, 0, {"0":0.5,"1":0.5}], +I[0, 0, {"0":1.0,"1":0.0}], +I[1, 1, {"0":0.0,"1":1.0}], +I[1, 1, {"0":0.0,"1":1.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}], +I[0, 0, {"0":1.0,"1":0.0}]]).
at com.alibaba.alink.common.lazy.LazyEvaluation.addValue(LazyEvaluation.java:45)
at com.alibaba.alink.operator.batch.BatchOperator.triggerLazyEvaluation(BatchOperator.java:769)
at com.alibaba.alink.operator.batch.BatchOperator.triggerLazyEvaluation(BatchOperator.java:746)
at com.alibaba.alink.operator.batch.BatchOperator.print(BatchOperator.java:443)
at com.alibaba.alink.operator.batch.BatchOperator.print(BatchOperator.java:438)
at com.alibaba.alink.operator.batch.BatchOperator.print(BatchOperator.java:430)
at com.sf.model.build.ModelTrain.main(ModelTrain.java:120)
Caused by: com.alibaba.fastjson.JSONException: can not cast to JSONObject.
at com.alibaba.fastjson.JSON.parseObject(JSON.java:260)
at com.alibaba.alink.operator.batch.BatchOperator.lambda$lazyPrint$4(BatchOperator.java:638)
at io.reactivex.rxjava3.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63)
at io.reactivex.rxjava3.subjects.ReplaySubject$UnboundedReplayBuffer.replay(ReplaySubject.java:791)
at io.reactivex.rxjava3.subjects.ReplaySubject.onNext(ReplaySubject.java:365)
at com.alibaba.alink.common.lazy.LazyEvaluation.addValue(LazyEvaluation.java:42)
... 6 more
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to com.alibaba.fastjson.JSONObject
at com.alibaba.fastjson.JSON.parseObject(JSON.java:258)
... 11 more
这是1.6.1版本 flink版本是1.13.5
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
人工智能平台 PAI(Platform for AI,原机器学习平台PAI)是面向开发者和企业的机器学习/深度学习工程平台,提供包含数据标注、模型构建、模型训练、模型部署、推理优化在内的AI开发全链路服务,内置140+种优化算法,具备丰富的行业场景插件,为用户提供低门槛、高性能的云原生AI工程化能力。