Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Created by Guest
Created on May 31, 2018

detect if a model is going to generate x number of lines in Java and then split into smaller predict functions

There is a limitation with Java that a method cannot have more than 64K btyes information (https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java).  Many Random Forest and Boosted Tree models exceed this limit when deploying the models as Java.  When attempting to compile a Java model that exceeds the 64K an error exception is thrown, "code too large" and the code is not compiled.  This makes it so that the code has to be broken into small chunks manually.  It would be very nice to have this automated.

  • Attach files
  • Guest
    Reply
    |
    Apr 17, 2019

    Please vote for this enhancement.  It will automate the java deployment so manual changes do not need to be made so the code will compile.