gpt4 book ai didi

java - Java测试失败,因为NoSuchMethodError

转载 作者:行者123 更新时间:2023-12-01 23:17:43 25 4
gpt4 key购买 nike

我在这样的环境中进行测试

./gradlew test



这是我得到的错误:
securitymanager.ml.pmml.something.SomeTest > test() FAILED
java.lang.NoSuchMethodError: org.dmg.pmml.tree.Node.getScore()Ljava/lang/Object;
at org.jpmml.evaluator.tree.NodeScoreDistribution.computeResult(NodeScoreDistribution.java:57)
at org.jpmml.evaluator.TargetUtil.evaluateClassification(TargetUtil.java:116)
at org.jpmml.evaluator.tree.TreeModelEvaluator.evaluateClassification(TreeModelEvaluator.java:148)
at org.jpmml.evaluator.ModelEvaluator.evaluate(ModelEvaluator.java:535)
at org.jpmml.evaluator.mining.MiningModelEvaluator.evaluateSegmentation(MiningModelEvaluator.java:512)
at org.jpmml.evaluator.mining.MiningModelEvaluator.evaluateClassification(MiningModelEvaluator.java:279)
at org.jpmml.evaluator.ModelEvaluator.evaluate(ModelEvaluator.java:535)
at org.jpmml.evaluator.mining.MiningModelEvaluator.evaluate(MiningModelEvaluator.java:212)
at org.jpmml.evaluator.mining.MiningModelEvaluator.evaluate(MiningModelEvaluator.java:205)
at securitymanager.ml.pmml.ClassifierImpl.doSomething(ClassifierImpl.java:111)

我检查了Node.class,它具有getScore()方法。

任何的想法??

最佳答案

似乎您需要配置您的类路径。

请参阅:https://github.com/jpmml/jpmml-sparkml/issues/12那里存在类似问题。

关于java - Java测试失败,因为NoSuchMethodError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58342458/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com