0

jpmml (バージョン 1.1.16) でツリー モデルを使用する場合、サイズ制限はありますか?

一部の入力に対して非常に大きなツリー (PMML サイズが数百 MB、数百万の葉) がある場合、次の例外が発生します。

java.lang.NullPointerException at org.jpmml.evaluator.PredicateUtil.evaluateSimplePredicate(PredicateUtil.java:79) at org.jpmml.evaluator.PredicateUtil.evaluate(PredicateUtil.java:54) at org.jpmml.evaluator.TreeModelEvaluator.evaluateNode( TreeModelEvaluator.java:171) org.jpmml.evaluator.TreeModelEvaluator.handleTrue(TreeModelEvaluator.java:186) org.jpmml.evaluator.TreeModelEvaluator.handleTrue(TreeModelEvaluator.java:197) org.jpmml.evaluator.TreeModelEvaluator.handleTrue (TreeModelEvaluator.java:197) org.jpmml.evaluator.TreeModelEvaluator.evaluateTree(TreeModelEvaluator.java:139) org.jpmml.evaluator.TreeModelEvaluator.evaluateRegression(TreeModelEvaluator.java:94) org.jpmml.evaluator.TreeModelEvaluator. evaluate(TreeModelEvaluator.java:77) org.jpmml.evaluator.MiningModelEvaluator.evaluateSegmentation(MiningModelEvaluator.java:463) org.jpmml.evaluator.MiningModelEvaluator.evaluateRegression(MiningModelEvaluator.java:149) :130) org.jpmml.evaluator.MiningModelEvaluator.evaluate(MiningModelEvaluator.java:106) で org.jpmml.evaluator.ModelEvaluator.evaluate(ModelEvaluator.java:263) で org.openscoring.service.ModelResource.evaluate(ModelResource. java:550) org.openscoring.service.ModelResource.doEvaluate(ModelResource.java:404) で org.openscoring.service.ModelResource.doEvaluateCsv(ModelResource.java:339) で org.openscoring.service.ModelResource.evaluateCsv(ModelResource) .java:299) を sun.reflect に置きます。NativeMethodAccessorImpl.invoke0 (ネイティブ メソッド) の sun.reflect.NativeMethodAccessorImpl.invoke (未知のソース) の sun.reflect.DelegatingMethodAccessorImpl.invoke (未知のソース) の java.lang.reflect.Method.invoke (未知のソース) の org.glassfish. jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:143) at org.glassfish.jersey. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker の server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:160)。org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:97) の doDispatch(JavaResourceMethodDispatcherProvider.java:158) org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java: 389) org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) で org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) で org.glassfish.jersey .server.ServerRuntime$2.run(ServerRuntime.java:303) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors. java:267) org.glassfish.jersey.internal.Errors.process(Errors.java:315) で org.org.glassfish.jersey.internal.Errors.process(Errors.java:297) で org.glassfish.jersey.internal.Errors.process(Errors.java:267) で org.glassfish.jersey.process.internal.RequestScope.runInScope( RequestScope.java:317) org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:286) org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1072) org.glassfish.jersey .servlet.WebComponent.service(WebComponent.java:399) の org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381) の org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344) ) org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808) org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587) で org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) で org.eclipse.jetty .servlet.ServletHandler.doScope(ServletHandler.java:515) の org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) の org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler) .java:141) org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) で org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) で org. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) の eclipse.jetty.server.Server.handle(Server.java:497) org.eclipse.jetty.server.org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) の HttpConnection.onFillable(HttpConnection.java:257) org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) ) org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) で java.lang.Thread.run (不明なソース) で

4

1 に答える 1