Class RandomForestClassifier

    • Method Detail

      • predict

        public float predict​(float[] features)
        Specified by:
        predict in class RandomForest
      • predict

        public float predict​(SortedMap<Float,​Float> votes)
        Predict based on a vote distribution.
        Parameters:
        votes - vote distribution
        Returns:
        prediction
      • voteDistribution

        public SortedMap<Float,​Float> voteDistribution​(float[] features)
        Returns the forest's vote distribution.
        Parameters:
        features - features
        Returns:
        relative vote distribution
      • votes

        public List<Float> votes​(float[] features)
        Returns the forest's votes.
        Parameters:
        features - features
        Returns:
        votes