开发者社区 > 大数据与机器学习 > 人工智能平台PAI > 正文

机器学习PAI在输出预测结果的时候,抛了这个异常,请问这个是什么原因呢?

机器学习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

展开
收起
乐天香橙派 2023-08-27 15:12:11 73 0
1 条回答
写回答
取消 提交回答
  • 我看下,可能是1.13的格式不能解析 —此回答来自钉群“Alink开源--用户群”

    2023-08-27 16:03:42
    赞同 展开评论 打赏

人工智能平台 PAI(Platform for AI,原机器学习平台PAI)是面向开发者和企业的机器学习/深度学习工程平台,提供包含数据标注、模型构建、模型训练、模型部署、推理优化在内的AI开发全链路服务,内置140+种优化算法,具备丰富的行业场景插件,为用户提供低门槛、高性能的云原生AI工程化能力。

相关产品

  • 人工智能平台 PAI
  • 热门讨论

    热门文章

    相关电子书

    更多
    大规模机器学习在蚂蚁+阿里的应用 立即下载
    阿里巴巴机器学习平台AI 立即下载
    微博机器学习平台架构和实践 立即下载