Class RandomForest

    • Constructor Detail

      • RandomForest

        public RandomForest​(URL model)
                     throws IOException
        Creates a Random Forest based on the provided model file. The file may be a text file, like it is produced by Spark's toDebugString(). Additionally, gzip compression is supported, if the file name end's in .gz, and a proprietary binary format generated by toBinary().
        Parameters:
        model - model file
        Throws:
        IOException
    • Method Detail

      • predict

        public abstract float predict​(float[] features)
      • toDebugString

        public String toDebugString()
        Human readable debug string.
        Returns:
        string
      • toBinary

        public byte[] toBinary()
        Create binary representation of this forest.
        Returns:
        binary representation